Skip to content

Commit 8cdc924

Browse files
committed
Fixed angular-ui-tree#347, nodrop doesn't work
nodrop doesn't work anymore (v2.1.5)
1 parent c6431ac commit 8cdc924

File tree

5 files changed

+23
-11
lines changed

5 files changed

+23
-11
lines changed

demo/dist/angular-ui-tree.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -784,9 +784,13 @@
784784
}
785785
});
786786

787-
attrs.$observe('nodrop', function(val) {
788-
scope.nodrop = ((typeof val) != "undefined");
789-
});
787+
scope.$watch(function () {
788+
return attrs.nodrop;
789+
}, function (newVal) {
790+
if((typeof newVal) != "undefined") {
791+
scope.nodrop = true;
792+
}
793+
}, true);
790794

791795
attrs.$observe('horizontal', function(val) {
792796
scope.horizontal = ((typeof val) != "undefined");

0 commit comments

Comments
 (0)