From 36f48cf772d478267b0ff5eb2c071a9d3996d673 Mon Sep 17 00:00:00 2001 From: James Allen Date: Mon, 21 Jul 2014 11:36:03 +0100 Subject: [PATCH] Fix drag and drop --- .../public/coffee/ide/file-tree/directives/droppable.coffee | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/services/web/public/coffee/ide/file-tree/directives/droppable.coffee b/services/web/public/coffee/ide/file-tree/directives/droppable.coffee index ea68630a21..890e345c23 100644 --- a/services/web/public/coffee/ide/file-tree/directives/droppable.coffee +++ b/services/web/public/coffee/ide/file-tree/directives/droppable.coffee @@ -3,9 +3,6 @@ define [ ], (App) -> App.directive "droppable", () -> return { - scope: { - onDropCallback: "=" - } link: (scope, element, attrs) -> scope.$watch attrs.droppable, (droppable) -> if droppable @@ -13,5 +10,5 @@ define [ greedy: true hoverClass: "droppable-hover" accept: attrs.accept - drop: scope.onDropCallback + drop: scope.$eval(attrs.onDropCallback) } \ No newline at end of file