Permalink
Browse files

Merge git://github.com/lfjallstrom/isotope

  • Loading branch information...
2 parents 2ccd7b2 + d15cbe5 commit 60c72e5d7ca26cffe6e11e9e87cbd54382b4e01c Vedran Vrbanc committed Feb 15, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 jquery.isotope.js
View
@@ -796,15 +796,14 @@
// removes elements from Isotope widget
remove: function( $content, callback ) {
// remove elements from Isotope instance in callback
- var instance = this;
var removeContent = function() {
- instance.$allAtoms = instance.$allAtoms.not( $content );
$content.remove();
};
if ( $content.filter( ':not(.' + this.options.hiddenClass + ')' ).length ) {
// if any non-hidden content needs to be removed
this.styleQueue.push({ $el: $content, style: this.options.hiddenStyle });
+ this.$allAtoms = this.$allAtoms.not( $content );
this.$filteredAtoms = this.$filteredAtoms.not( $content );
this._sort();
this.reLayout( removeContent, callback );

0 comments on commit 60c72e5

Please sign in to comment.