diff --git a/jquery.isotope.js b/jquery.isotope.js index f4efad6..0efe95a 100644 --- a/jquery.isotope.js +++ b/jquery.isotope.js @@ -836,7 +836,7 @@ }, // destroys widget, returns elements and container back (close) to original style - destroy : function() { + destroy : function( callback ) { var usingTransforms = this.usingTransforms; var options = this.options; @@ -867,7 +867,10 @@ .removeData('isotope'); $window.unbind('.isotope'); - + + if ( callback ) { + callback(); + } },