Browse Source

Merge branch 'get-filtered-item-elements'

pull/829/head
David DeSandro 10 years ago
parent
commit
3a6c679ec8
  1. 14
      js/isotope.js

14
js/isotope.js

@ -579,6 +579,20 @@ function isotopeDefinition( Outlayer, getSize, matchesSelector, Item, LayoutMode
return returnValue; return returnValue;
}; };
// ----- helper methods ----- //
/**
* getter method for getting filtered item elements
* @returns {Array} elems - collection of item elements
*/
Isotope.prototype.getFilteredItemElements = function() {
var elems = [];
for ( var i=0, len = this.filteredItems.length; i < len; i++ ) {
elems.push( this.filteredItems[i].element );
}
return elems;
};
// ----- ----- // // ----- ----- //
return Isotope; return Isotope;

Loading…
Cancel
Save