Skip to content

Commit

Permalink
v3.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris-B authored Oct 13, 2020
1 parent d3b132f commit d85d725
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/jquery.nanogallery2.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
// ###########################################



// Expose plugin as an AMD module if AMD loader is present:
(function (factory) {
"use strict";
Expand Down Expand Up @@ -382,7 +383,7 @@
}

// remove the albums's items from the global items array
this.I.removeIf( function( obj ) {
this.I.ngy2removeIf( function( obj ) {
return( obj.albumID == albumID && obj.kind != 'albumUp' );
});

Expand Down Expand Up @@ -659,7 +660,7 @@
}
}

// TODO: update medianumber of the other item in the same album
// TODO: update media-number of the other item in the same album
}

NGY2Item.prototype.addToGOM = function( ) {
Expand Down Expand Up @@ -7898,8 +7899,8 @@ debugger;
};
}());

// array.removeIf -> removes items from array base on a function's result
Array.prototype.removeIf = function(callback) {
// array.ngy2removeIf -> removes items from array base on a function's result
Array.prototype.ngy2removeIf = function(callback) {
var i = this.length;
while (i--) {
if (callback(this[i], i)) {
Expand Down

0 comments on commit d85d725

Please sign in to comment.