From 3b14367cdc9b7c0b78200ca1c44b70a22b9d7ee5 Mon Sep 17 00:00:00 2001 From: Jan Hobelmann Date: Sat, 24 Feb 2018 17:24:44 +0100 Subject: [PATCH] added functionality that dnd-type can be a number yet dnd-allowed-types is able to take a array of strings or numbers but dnd-type on the subelement just takes a string. now its also possible to give a number which is useful in not few cases --- angular-drag-and-drop-lists.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angular-drag-and-drop-lists.js b/angular-drag-and-drop-lists.js index 8a07ce3..503e054 100644 --- a/angular-drag-and-drop-lists.js +++ b/angular-drag-and-drop-lists.js @@ -99,7 +99,7 @@ // Initialize global state. dndState.isDragging = true; - dndState.itemType = attr.dndType && scope.$eval(attr.dndType).toLowerCase(); + dndState.itemType = attr.dndType && (scope.$eval(attr.dndType) + '').toLowerCase(); // Set the allowed drop effects. See below for special IE handling. dndState.dropEffect = "none";