Gandalf wouldn't let them pass.

pull/56/head
Glen Cheney 10 years ago
parent 7ad8133147
commit e1cc848631

@ -664,6 +664,7 @@ Shuffle.prototype._layout = function( items, isOnlyPosition ) {
var $item = $(item);
var itemData = $item.data();
var currPos = itemData.position;
var currScale = itemData.scale;
var pos = this._getItemPosition( $item );
// Save data for shrink
@ -672,7 +673,7 @@ Shuffle.prototype._layout = function( items, isOnlyPosition ) {
// If the item will not change its position, do not add it to the render
// queue. Transitions don't fire when setting a property to the same value.
if ( pos.x === currPos.x && pos.y === currPos.y && itemData.scale === DEFAULT_SCALE ) {
if ( pos.x === currPos.x && pos.y === currPos.y && currScale === DEFAULT_SCALE ) {
return;
}

@ -670,6 +670,7 @@ Shuffle.prototype._layout = function( items, isOnlyPosition ) {
var $item = $(item);
var itemData = $item.data();
var currPos = itemData.position;
var currScale = itemData.scale;
var pos = this._getItemPosition( $item );
// Save data for shrink
@ -678,7 +679,7 @@ Shuffle.prototype._layout = function( items, isOnlyPosition ) {
// If the item will not change its position, do not add it to the render
// queue. Transitions don't fire when setting a property to the same value.
if ( pos.x === currPos.x && pos.y === currPos.y && itemData.scale === DEFAULT_SCALE ) {
if ( pos.x === currPos.x && pos.y === currPos.y && currScale === DEFAULT_SCALE ) {
return;
}

@ -647,6 +647,7 @@ Shuffle.prototype._layout = function( items, isOnlyPosition ) {
var $item = $(item);
var itemData = $item.data();
var currPos = itemData.position;
var currScale = itemData.scale;
var pos = this._getItemPosition( $item );
// Save data for shrink
@ -655,7 +656,7 @@ Shuffle.prototype._layout = function( items, isOnlyPosition ) {
// If the item will not change its position, do not add it to the render
// queue. Transitions don't fire when setting a property to the same value.
if ( pos.x === currPos.x && pos.y === currPos.y && itemData.scale === DEFAULT_SCALE ) {
if ( pos.x === currPos.x && pos.y === currPos.y && currScale === DEFAULT_SCALE ) {
return;
}

Loading…
Cancel
Save