Browse Source

Fixes an "instance is undefined" error in _sort function

Signed-off-by: sroucheray
pull/51/head
sroucheray 14 years ago
parent
commit
e7974351e7
  1. 3
      jquery.isotope.js

3
jquery.isotope.js

@ -536,7 +536,8 @@
// used on all the filtered atoms // used on all the filtered atoms
_sort : function() { _sort : function() {
var sortBy = this.options.sortBy, var instance = this,
sortBy = this.options.sortBy,
getSorter = this._getSorter, getSorter = this._getSorter,
sortDir = this.options.sortAscending ? 1 : -1, sortDir = this.options.sortAscending ? 1 : -1,
sortFn = function( alpha, beta ) { sortFn = function( alpha, beta ) {

Loading…
Cancel
Save