We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 388f545 commit 80856acCopy full SHA for 80856ac
src/angular-dragdrop.js
@@ -47,7 +47,7 @@ var jqyoui = angular.module('ngDragDrop', []).service('ngDragDropService', ['$ti
47
// call either $scoped method i.e. $scope.dropCallback or constructor's method i.e. this.dropCallback.
48
// Removing scope.$apply call that was performance intensive (especially onDrag) and does not require it
49
// always. So call it within the callback if needed.
50
- return (scope[callback] || scope[constructor][callback]).apply(scope, args);
+ return (scope[callback] || scope[constructor][callback]).apply(scope[callback] ? scope : scope[constructor], args);
51
52
function extract(callbackName) {
53
var atStartBracket = callbackName.indexOf('(') !== -1 ? callbackName.indexOf('(') : callbackName.length,
0 commit comments