Browse Source

fix: redundant CSS transitions

pull/726/head
Kyle Traff 11 years ago
parent
commit
7774aa1132
  1. 4
      dist/isotope.pkgd.js

4
dist/isotope.pkgd.js vendored

@ -1482,8 +1482,8 @@ Item.prototype.enableTransition = function(/* style */) {
transitionProperty: itemTransitionProperties,
transitionDuration: this.layout.options.transitionDuration
});
// listen for transition end event
this.element.addEventListener( transitionEndEvent, this, false );
// fix: commenting out to prevent multiple transitions.
//this.element.addEventListener( transitionEndEvent, this, false );
};
Item.prototype.transition = Item.prototype[ transitionProperty ? '_transition' : '_nonTransition' ];

Loading…
Cancel
Save