Skip to main content

Search and Top Navigation

#5506 closed bug (fixed)

Opened April 12, 2010 10:36AM UTC

Closed August 29, 2012 02:30PM UTC

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: mkowalski@codesprinters.com
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')) {

...

}

Attachments (0)
Change History (3)

Changed July 30, 2010 11:34AM UTC by jzaefferer comment:1

component: ui.coreeffects.core

Changed March 28, 2011 06:13PM UTC by gnarf comment:2

status: newopen

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...

Changed August 29, 2012 02:30PM UTC by scottgonzalez comment:3

milestone: TBD1.9.0
resolution: → fixed
status: openclosed

This is working in master.