Browse Source

add getFilteredItemElements, Ref #768

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

14
js/isotope.js

@ -579,6 +579,20 @@ function isotopeDefinition( Outlayer, getSize, matchesSelector, Item, LayoutMode
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;

Loading…
Cancel
Save