Browse Source

Added callback to destroy

Added a callback function to the destroy method for simple chaining.
pull/303/head
Andrew Maxwell 12 years ago
parent
commit
e296e9b3de
  1. 7
      jquery.isotope.js

7
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();
}
},

Loading…
Cancel
Save