File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 626
626
627
627
// Fire dragStart callback
628
628
scope . $apply ( function ( ) {
629
- scope . $callbacks . dragStart ( dragInfo . eventArgs ( elements , pos ) ) ;
629
+ scope . $treeScope . $ callbacks. dragStart ( dragInfo . eventArgs ( elements , pos ) ) ;
630
630
} ) ;
631
631
632
632
tagName = scope . $element . prop ( 'tagName' ) ;
870
870
}
871
871
872
872
scope . $apply ( function ( ) {
873
- scope . $callbacks . dragMove ( dragInfo . eventArgs ( elements , pos ) ) ;
873
+ scope . $treeScope . $ callbacks. dragMove ( dragInfo . eventArgs ( elements , pos ) ) ;
874
874
} ) ;
875
875
}
876
876
} ;
880
880
881
881
if ( dragElm ) {
882
882
scope . $treeScope . $apply ( function ( ) {
883
- scope . $callbacks . beforeDrop ( dragInfo . eventArgs ( elements , pos ) ) ;
883
+ scope . $treeScope . $ callbacks. beforeDrop ( dragInfo . eventArgs ( elements , pos ) ) ;
884
884
} ) ;
885
885
// roll back elements changed
886
886
hiddenPlaceElm . replaceWith ( scope . $element ) ;
891
891
if ( scope . $$apply ) {
892
892
scope . $treeScope . $apply ( function ( ) {
893
893
dragInfo . apply ( ) ;
894
- scope . $callbacks . dropped ( dragInfo . eventArgs ( elements , pos ) ) ;
894
+ scope . $treeScope . $ callbacks. dropped ( dragInfo . eventArgs ( elements , pos ) ) ;
895
895
} ) ;
896
896
} else {
897
897
bindDrag ( ) ;
898
898
}
899
899
scope . $treeScope . $apply ( function ( ) {
900
- scope . $callbacks . dragStop ( dragInfo . eventArgs ( elements , pos ) ) ;
900
+ scope . $treeScope . $ callbacks. dragStop ( dragInfo . eventArgs ( elements , pos ) ) ;
901
901
} ) ;
902
902
scope . $$apply = false ;
903
903
dragInfo = null ;
You can’t perform that action at this time.
0 commit comments