blackberry / Ripple-Framework

A browser-like framework component that hosts the Ripple UI tooling and provides services required for emulation
Apache License 2.0
28 stars 12 forks source link

JQuery - property 'length' of undefined #123

Open calebchee opened 11 years ago

calebchee commented 11 years ago

I seems to be getting the follow error in Chrome console when Ripple is enabled. I don't see this error in normal mode or even in Mozilla firebug. The length is a standard property for JQuery and should not throw any error.

Uncaught TypeError: Cannot read property 'length' of undefined atimjp.js:118 gallery XXX.js:118 (anonymous function)

Below is part of my script XXX.js where Chrome is complaining when Ripple is enabled.

function gallery() { var current = ($('ul.slideshow li.show')? $('ul.slideshow li.show') : $('#ul.slideshow li:first'));

//ERROR is showing for the following line if(current.queue('fx').length == 0) { /* codes */ } }