#1755 closed bug (invalid)
jQuery UI problem with drag and drop on Safari
Reported by: | marklacas | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.2.2 |
Component: | plugin | Version: | 1.2.1 |
Keywords: | ui safari | Cc: | |
Blocked by: | Blocking: |
Description
The code below works when I comment out or remove the activeClass and hoverClass options in droppable. When they are not commented out Safari doesn't do the drag (or drop) and spits out javascript errors in droppable.ext.js
$("#drop-box").addClass("droppable-active").droppable({
accept: ".activeClass", tolerance: "pointer", activeClass: "activecolor", hoverClass: "droppable-hover", drop: function( ev, ui ) {
$(this).append( $(document.createElement("div") ).text( $(ui.draggable.element).text() ));
}
});
$(".dragger").addClass("draggable").draggable({
helper: "clone"
});
Attachments (1)
Change History (4)
comment:1 Changed 15 years ago by
Changed 15 years ago by
Attachment: | safari_reserved_word_1755.diff added |
---|
Fix use of reserved word in Safari2
comment:3 Changed 14 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
If this bug is still present, please file a ticket on the UI tracker:
Seems to be a problem with how plugins are called (different errors happen depending on what plugins you are using), 'arguments' is a reserved word and Safari 2 doesn't let you rebind it as a local in the function (later WebKit builds don't seem to have a problem). The following fixes it for me: