Don't $.rm elements that have been dragged when using UI.hover.

This commit is contained in:
Nicolas Stepien 2012-05-30 00:56:55 +02:00
parent 295764beb6
commit 50708030e0
2 changed files with 3 additions and 1 deletions

View File

@ -237,7 +237,8 @@
el = UI.el;
localStorage["" + Main.namespace + el.id + ".position"] = el.style.cssText;
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) {
var clientHeight, clientWidth, clientX, clientY, height, style, top, _ref;

View File

@ -207,6 +207,7 @@ UI =
localStorage["#{Main.namespace}#{el.id}.position"] = el.style.cssText
d.removeEventListener 'mousemove', UI.drag, false
d.removeEventListener 'mouseup', UI.dragend, false
delete UI.el
hover: (e) ->
{clientX, clientY} = e
{style} = UI.el