Browse Source

src : prevent no $el when checking for transition

pull/166/merge
David DeSandro 13 years ago
parent
commit
03004485c1
  1. 5
      jquery.isotope.js

5
jquery.isotope.js

@ -678,10 +678,11 @@
} else if ( Modernizr.csstransitions ) {
// detect if first item has transition
var i = 0,
testElem = this.styleQueue[0].$el,
firstItem = this.styleQueue[0],
testElem = firstItem && firstItem.$el,
styleObj;
// get first non-empty jQ object
while ( !testElem.length ) {
while ( !testElem || !testElem.length ) {
styleObj = this.styleQueue[ i++ ];
// HACK: sometimes styleQueue[i] is undefined
if ( !styleObj ) {

Loading…
Cancel
Save