Skip to content
This repository was archived by the owner on Mar 10, 2024. It is now read-only.

Commit 981561c

Browse files
Remove duplicate line
1 parent e19aa8a commit 981561c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

angular-drag-and-drop-lists.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,6 @@
408408
data = invokeCallback(attr.dndDrop, event, dropEffect, itemType, index, data);
409409
if (!data) return stopDragover();
410410
}
411-
dndState.dropEffect = dropEffect;
412411

413412
// The drop is definitely going to happen now, store the dropEffect.
414413
dndState.dropEffect = dropEffect;

angular-drag-and-drop-lists.min.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ try{var d=JSON.parse(e.dataTransfer.getData(n))}catch(l){return p()}if((n==t||n=
4343
var y=n==t,T=u(e,y)
4444
if("none"==T)return p()
4545
var h=D()
46-
return f.dndDrop&&(d=v(f.dndDrop,e,T,a,h,d),!d)?p():(o.dropEffect=T,o.dropEffect=T,y||(e.dataTransfer.dropEffect=T),d!==!0&&i.$apply(function(){i.$eval(f.dndList).splice(h,0,d)}),v(f.dndInserted,e,T,a,h,d),p(),e.stopPropagation(),!1)}),l.on("dragleave",function(e){e=e.originalEvent||e
46+
return f.dndDrop&&(d=v(f.dndDrop,e,T,a,h,d),!d)?p():(o.dropEffect=T,y||(e.dataTransfer.dropEffect=T),d!==!0&&i.$apply(function(){i.$eval(f.dndList).splice(h,0,d)}),v(f.dndInserted,e,T,a,h,d),p(),e.stopPropagation(),!1)}),l.on("dragleave",function(e){e=e.originalEvent||e
4747
var n=document.elementFromPoint(e.clientX,e.clientY)
4848
m.contains(n)&&!e._dndPhShown?e._dndPhShown=!0:p()})}}]),e.directive("dndNodrag",function(){return function(e,n,a){n.attr("draggable","true"),n.on("dragstart",function(e){e=e.originalEvent||e,e._dndHandle||(e.dataTransfer.types&&e.dataTransfer.types.length||e.preventDefault(),e.stopPropagation())}),n.on("dragend",function(e){e=e.originalEvent||e,e._dndHandle||e.stopPropagation()})}}),e.directive("dndHandle",function(){return function(e,n,a){n.attr("draggable","true"),n.on("dragstart dragend",function(e){e=e.originalEvent||e,e._dndHandle=!0})}})
4949
var o={}}(angular.module("dndLists",[]));

0 commit comments

Comments
 (0)