use jquery .live on drag to also get elements added after drag started

This commit is contained in:
j 2013-07-15 11:32:28 +00:00
parent c6c3452853
commit c0eff8edf3

View file

@ -141,7 +141,7 @@ Ox.Element = function(options, self) {
});
// trigger dragstart, set up drag events
that.triggerEvent('dragstart', e);
$('.OxElement').on({
$('.OxElement').live({
mouseenter: dragenter,
mouseleave: dragleave
});