Opened 13 years ago
Closed 10 years ago
#5506 closed bug (fixed)
effect('highlight') produces exception in chrome on detached object
Reported by: | mkowalski | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.effects.core | Version: | 1.7 |
Keywords: | Cc: | [email protected]… | |
Blocked by: | Blocking: |
Description
chrome version: Chromium 5.0.372.0 (44042) Ubuntu
code to reproduce:
var element = $('#some-existing-id');
element.detach();
element.effect('highlight');
This code produces uncaught exception:
Cannot get property 0 of undefined.
On every other browser we the following behavior: since item is not visible on the page nothing happens.
Workaround: check if element is visible before calling effect
if (item.is(':visible')) {
...
}
Change History (3)
comment:1 Changed 13 years ago by
Component: | ui.core → effects.core |
---|
comment:2 Changed 12 years ago by
Status: | new → open |
---|
comment:3 Changed 10 years ago by
Milestone: | TBD → 1.9.0 |
---|---|
Resolution: | → fixed |
Status: | open → closed |
This is working in master.
Note: See
TracTickets for help on using
tickets.
http://bugs.jqueryui.com/ticket/5506 - Seems to be that highlight effect is grabbing the elements backgroundColor before animating it - upcoming changes in jQuery-color will help here...