Skip to content

Commit c2ade31

Browse files
committed
πŸ‘· build v3.0.5; isotope-layout package name
1 parent 46d2769 commit c2ade31

File tree

5 files changed

+41
-38
lines changed

5 files changed

+41
-38
lines changed

β€ŽREADME.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@ Add a `data-isotope` attribute to your element. Options can be set in JSON in th
8282

8383
* * *
8484

85-
By [Metafizzy](http://metafizzy.co), 2010–2017
85+
By [Metafizzy](https://metafizzy.co), 2010–2017

β€Ždist/isotope.pkgd.jsβ€Ž

Lines changed: 34 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*!
2-
* Isotope PACKAGED v3.0.4
2+
* Isotope PACKAGED v3.0.5
33
*
44
* Licensed GPLv3 for open source use
55
* or Isotope Commercial License for commercial use
66
*
7-
* http://isotope.metafizzy.co
7+
* https://isotope.metafizzy.co
88
* Copyright 2017 Metafizzy
99
*/
1010

@@ -153,7 +153,7 @@ return jQueryBridget;
153153
}));
154154

155155
/**
156-
* EvEmitter v1.0.3
156+
* EvEmitter v1.1.0
157157
* Lil' event emitter
158158
* MIT License
159159
*/
@@ -233,13 +233,14 @@ proto.emitEvent = function( eventName, args ) {
233233
if ( !listeners || !listeners.length ) {
234234
return;
235235
}
236-
var i = 0;
237-
var listener = listeners[i];
236+
// copy over to avoid interference if .off() in listener
237+
listeners = listeners.slice(0);
238238
args = args || [];
239239
// once stuff
240240
var onceListeners = this._onceEvents && this._onceEvents[ eventName ];
241241

242-
while ( listener ) {
242+
for ( var i=0; i < listeners.length; i++ ) {
243+
var listener = listeners[i]
243244
var isOnce = onceListeners && onceListeners[ listener ];
244245
if ( isOnce ) {
245246
// remove listener
@@ -250,14 +251,16 @@ proto.emitEvent = function( eventName, args ) {
250251
}
251252
// trigger listener
252253
listener.apply( this, args );
253-
// get next listener
254-
i += isOnce ? 0 : 1;
255-
listener = listeners[i];
256254
}
257255

258256
return this;
259257
};
260258

259+
proto.allOff = function() {
260+
delete this._events;
261+
delete this._onceEvents;
262+
};
263+
261264
return EvEmitter;
262265

263266
}));
@@ -2268,7 +2271,7 @@ return Outlayer;
22682271
/* jshint strict: false */ /*globals define, module, require */
22692272
if ( typeof define == 'function' && define.amd ) {
22702273
// AMD
2271-
define( 'isotope/js/item',[
2274+
define( 'isotope-layout/js/item',[
22722275
'outlayer/outlayer'
22732276
],
22742277
factory );
@@ -2346,7 +2349,7 @@ return Item;
23462349
/* jshint strict: false */ /*globals define, module, require */
23472350
if ( typeof define == 'function' && define.amd ) {
23482351
// AMD
2349-
define( 'isotope/js/layout-mode',[
2352+
define( 'isotope-layout/js/layout-mode',[
23502353
'get-size/get-size',
23512354
'outlayer/outlayer'
23522355
],
@@ -2496,9 +2499,9 @@ return Item;
24962499
}));
24972500

24982501
/*!
2499-
* Masonry v4.2.0
2502+
* Masonry v4.2.1
25002503
* Cascading grid layout library
2501-
* http://masonry.desandro.com
2504+
* https://masonry.desandro.com
25022505
* MIT License
25032506
* by David DeSandro
25042507
*/
@@ -2508,7 +2511,7 @@ return Item;
25082511
/* jshint strict: false */ /*globals define, module, require */
25092512
if ( typeof define == 'function' && define.amd ) {
25102513
// AMD
2511-
define( 'masonry/masonry',[
2514+
define( 'masonry-layout/masonry',[
25122515
'outlayer/outlayer',
25132516
'get-size/get-size'
25142517
],
@@ -2738,17 +2741,17 @@ return Item;
27382741
/*!
27392742
* Masonry layout mode
27402743
* sub-classes Masonry
2741-
* http://masonry.desandro.com
2744+
* https://masonry.desandro.com
27422745
*/
27432746

27442747
( function( window, factory ) {
27452748
// universal module definition
27462749
/* jshint strict: false */ /*globals define, module, require */
27472750
if ( typeof define == 'function' && define.amd ) {
27482751
// AMD
2749-
define( 'isotope/js/layout-modes/masonry',[
2752+
define( 'isotope-layout/js/layout-modes/masonry',[
27502753
'../layout-mode',
2751-
'masonry/masonry'
2754+
'masonry-layout/masonry'
27522755
],
27532756
factory );
27542757
} else if ( typeof module == 'object' && module.exports ) {
@@ -2819,7 +2822,7 @@ return Item;
28192822
/* jshint strict: false */ /*globals define, module, require */
28202823
if ( typeof define == 'function' && define.amd ) {
28212824
// AMD
2822-
define( 'isotope/js/layout-modes/fit-rows',[
2825+
define( 'isotope-layout/js/layout-modes/fit-rows',[
28232826
'../layout-mode'
28242827
],
28252828
factory );
@@ -2888,7 +2891,7 @@ return FitRows;
28882891
/* jshint strict: false */ /*globals define, module, require */
28892892
if ( typeof define == 'function' && define.amd ) {
28902893
// AMD
2891-
define( 'isotope/js/layout-modes/vertical',[
2894+
define( 'isotope-layout/js/layout-modes/vertical',[
28922895
'../layout-mode'
28932896
],
28942897
factory );
@@ -2935,12 +2938,12 @@ return Vertical;
29352938
}));
29362939

29372940
/*!
2938-
* Isotope v3.0.4
2941+
* Isotope v3.0.5
29392942
*
29402943
* Licensed GPLv3 for open source use
29412944
* or Isotope Commercial License for commercial use
29422945
*
2943-
* http://isotope.metafizzy.co
2946+
* https://isotope.metafizzy.co
29442947
* Copyright 2017 Metafizzy
29452948
*/
29462949

@@ -2954,12 +2957,12 @@ return Vertical;
29542957
'get-size/get-size',
29552958
'desandro-matches-selector/matches-selector',
29562959
'fizzy-ui-utils/utils',
2957-
'isotope/js/item',
2958-
'isotope/js/layout-mode',
2960+
'isotope-layout/js/item',
2961+
'isotope-layout/js/layout-mode',
29592962
// include default layout modes
2960-
'isotope/js/layout-modes/masonry',
2961-
'isotope/js/layout-modes/fit-rows',
2962-
'isotope/js/layout-modes/vertical'
2963+
'isotope-layout/js/layout-modes/masonry',
2964+
'isotope-layout/js/layout-modes/fit-rows',
2965+
'isotope-layout/js/layout-modes/vertical'
29632966
],
29642967
function( Outlayer, getSize, matchesSelector, utils, Item, LayoutMode ) {
29652968
return factory( window, Outlayer, getSize, matchesSelector, utils, Item, LayoutMode );
@@ -2972,12 +2975,12 @@ return Vertical;
29722975
require('get-size'),
29732976
require('desandro-matches-selector'),
29742977
require('fizzy-ui-utils'),
2975-
require('isotope/js/item'),
2976-
require('isotope/js/layout-mode'),
2978+
require('isotope-layout/js/item'),
2979+
require('isotope-layout/js/layout-mode'),
29772980
// include default layout modes
2978-
require('isotope/js/layout-modes/masonry'),
2979-
require('isotope/js/layout-modes/fit-rows'),
2980-
require('isotope/js/layout-modes/vertical')
2981+
require('isotope-layout/js/layout-modes/masonry'),
2982+
require('isotope-layout/js/layout-modes/fit-rows'),
2983+
require('isotope-layout/js/layout-modes/vertical')
29812984
);
29822985
} else {
29832986
// browser global

β€Ždist/isotope.pkgd.min.jsβ€Ž

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žjs/isotope.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Isotope v3.0.4
2+
* Isotope v3.0.5
33
*
44
* Licensed GPLv3 for open source use
55
* or Isotope Commercial License for commercial use

β€Žpackage.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "isotope-layout",
3-
"version": "3.0.4",
3+
"version": "3.0.5",
44
"description": "Filter and sort magical layouts",
55
"main": "js/isotope.js",
66
"files": [

0 commit comments

Comments
Β (0)