Ticket #937 (closed defect: invalid)
emptydrop does not fire properly when clone doesnt move
| Reported by: | phillc | Owned by: | |
|---|---|---|---|
| Type: | defect | Priority: | minor |
| Milestone: | Mootools version 1.2 | Component: | Plugins |
| Keywords: | Cc: |
Description
window.addEvent('domready', function(){
$$('.choice').each(function(choice){
choice.addEvent('mousedown', function(e)
{
e = new Event(e).stop();
var clone = this.clone()
.setStyles(this.getCoordinates())
.setStyles({'opacity': 0.7, 'position': 'absolute'})
.addEvent(
'emptydrop', function()
{
this.remove();
}
).inject(document.body);
var drag = clone.makeDraggable({});
drag.start(e);
});
});
});
if you just click and do not drag, the cloned element does not fire a emptydrop.
worked correctly in 1.11