Skip to content

Commit

Permalink
Declare variable with wrong way
Browse files Browse the repository at this point in the history
  • Loading branch information
EddieWen-Taiwan committed Mar 4, 2016
1 parent d04e421 commit 0e9ffae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/fallwall.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/fallwall.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,14 @@
}

const targetColumn = $('.fw_column').eq( _getShortestCol() );
var creatingElement;
if( direction == 'up' ) {
targetColumn.prepend( thisCode );
const creatingElement = targetColumn.find('.fw_grid').first();
creatingElement = targetColumn.find('.fw_grid').first();
}
else {
targetColumn.append( thisCode );
const creatingElement = targetColumn.find('.fw_grid').last();
creatingElement = targetColumn.find('.fw_grid').last();
}

// Add animation class
Expand Down

0 comments on commit 0e9ffae

Please sign in to comment.