From 2ccd7b2fbfeb58051d2ed6ddcd7af7b8605d6a83 Mon Sep 17 00:00:00 2001 From: Vedran Vrbanc Date: Wed, 15 Feb 2012 01:29:24 +0100 Subject: [PATCH] Fixed bug where callback wouldn't be called after the 'remove' method. --- jquery.isotope.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jquery.isotope.js b/jquery.isotope.js index 8f4f38d..925a7c6 100644 --- a/jquery.isotope.js +++ b/jquery.isotope.js @@ -811,9 +811,9 @@ } else { // remove it now removeContent(); - if ( callback ) { - callback.call( this.element ); - } + } + if ( callback ) { + callback.call( this.element ); } }, @@ -1388,4 +1388,4 @@ return this; }; -})( window, jQuery ); \ No newline at end of file +})( window, jQuery );