Don't $.rm elements that have been dragged when using UI.hover.
This commit is contained in:
parent
295764beb6
commit
50708030e0
@ -237,7 +237,8 @@
|
|||||||
el = UI.el;
|
el = UI.el;
|
||||||
localStorage["" + Main.namespace + el.id + ".position"] = el.style.cssText;
|
localStorage["" + Main.namespace + el.id + ".position"] = el.style.cssText;
|
||||||
d.removeEventListener('mousemove', UI.drag, false);
|
d.removeEventListener('mousemove', UI.drag, false);
|
||||||
return d.removeEventListener('mouseup', UI.dragend, false);
|
d.removeEventListener('mouseup', UI.dragend, false);
|
||||||
|
return delete UI.el;
|
||||||
},
|
},
|
||||||
hover: function(e) {
|
hover: function(e) {
|
||||||
var clientHeight, clientWidth, clientX, clientY, height, style, top, _ref;
|
var clientHeight, clientWidth, clientX, clientY, height, style, top, _ref;
|
||||||
|
|||||||
@ -207,6 +207,7 @@ UI =
|
|||||||
localStorage["#{Main.namespace}#{el.id}.position"] = el.style.cssText
|
localStorage["#{Main.namespace}#{el.id}.position"] = el.style.cssText
|
||||||
d.removeEventListener 'mousemove', UI.drag, false
|
d.removeEventListener 'mousemove', UI.drag, false
|
||||||
d.removeEventListener 'mouseup', UI.dragend, false
|
d.removeEventListener 'mouseup', UI.dragend, false
|
||||||
|
delete UI.el
|
||||||
hover: (e) ->
|
hover: (e) ->
|
||||||
{clientX, clientY} = e
|
{clientX, clientY} = e
|
||||||
{style} = UI.el
|
{style} = UI.el
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user