Browse Source

tick version v2.0.1; build dist files

add some ignores to bower.json
pull/829/head v2.0.1
David DeSandro 10 years ago
parent
commit
293c7c58cf
  1. 9
      bower.json
  2. 39
      dist/isotope.pkgd.js
  3. 6
      dist/isotope.pkgd.min.js
  4. 2
      js/isotope.js
  5. 2
      package.json

9
bower.json

@ -1,6 +1,6 @@
{
"name": "isotope",
"version": "2.0.0",
"version": "2.0.1",
"description": "Filter and sort magical layouts",
"main": [
"js/item.js",
@ -11,7 +11,7 @@
"js/layout-modes/masonry.js"
],
"dependencies": {
"get-size": "desandro/get-size#>=1 <2",
"get-size": ">=1 <2",
"matches-selector": "desandro/matches-selector#>=1 <2",
"outlayer": "^1.2.0",
"masonry": "^3.1.5"
@ -29,9 +29,12 @@
"ignore": [
"test/",
"examples/",
"sandbox/",
"**/.*",
"Gruntfile.js",
"package.json",
"notes.md"
"notes.md",
"CONTRIBUTING.mdown",
"changelog.md"
]
}

39
dist/isotope.pkgd.js vendored

@ -1,5 +1,5 @@
/*!
* Isotope PACKAGED v2.0.0
* Isotope PACKAGED v2.0.1
* Filter & sort magical layouts
* http://isotope.metafizzy.co
*/
@ -2719,6 +2719,16 @@ Item.prototype.updateSortData = function() {
}
};
var _destroy = Item.prototype.destroy;
Item.prototype.destroy = function() {
// call super
_destroy.apply( this, arguments );
// reset display, #741
this.css({
display: ''
});
};
return Item;
}
@ -3285,7 +3295,7 @@ if ( typeof define === 'function' && define.amd ) {
})( window );
/*!
* Isotope v2.0.0
* Isotope v2.0.1
* Filter & sort magical layouts
* http://isotope.metafizzy.co
*/
@ -3835,6 +3845,17 @@ function isotopeDefinition( Outlayer, getSize, matchesSelector, Item, LayoutMode
}
};
Isotope.prototype.shuffle = function() {
// update random sortData
for ( var i=0, len = this.items.length; i < len; i++ ) {
var item = this.items[i];
item.sortData.random = Math.random();
}
this.options.sortBy = 'random';
this._sort();
this._layout();
};
/**
* trigger fn without transition
* kind of hacky to have this in the first place
@ -3854,6 +3875,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;

6
dist/isotope.pkgd.min.js vendored

File diff suppressed because one or more lines are too long

2
js/isotope.js

@ -1,5 +1,5 @@
/*!
* Isotope v2.0.0
* Isotope v2.0.1
* Filter & sort magical layouts
* http://isotope.metafizzy.co
*/

2
package.json

@ -1,6 +1,6 @@
{
"name": "isotope",
"version": "2.0.0",
"version": "2.0.1",
"description": "Filter and sort magical layouts",
"devDependencies": {
"grunt": "~0.4.0",

Loading…
Cancel
Save