From e7974351e72b882933a9dda52d91a749054daab5 Mon Sep 17 00:00:00 2001 From: sroucheray Date: Thu, 12 May 2011 17:43:12 +0200 Subject: [PATCH] Fixes an "instance is undefined" error in _sort function Signed-off-by: sroucheray --- jquery.isotope.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jquery.isotope.js b/jquery.isotope.js index 77381ef..96464d2 100644 --- a/jquery.isotope.js +++ b/jquery.isotope.js @@ -536,7 +536,8 @@ // used on all the filtered atoms _sort : function() { - var sortBy = this.options.sortBy, + var instance = this, + sortBy = this.options.sortBy, getSorter = this._getSorter, sortDir = this.options.sortAscending ? 1 : -1, sortFn = function( alpha, beta ) {