Fix drag and drop

This commit is contained in:
James Allen 2014-07-21 11:36:03 +01:00
parent 608fc8364b
commit 36f48cf772

View file

@ -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)
}