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