dynamic-marquee
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -417,6 +417,5 @@ (function (global, factory) { | ||
key: '_removeItem', | ||
value: function _removeItem(_ref6) { | ||
value: function _removeItem(item) { | ||
var _this2 = this; | ||
var item = _ref6.item; | ||
defer(function () { | ||
@@ -444,4 +443,4 @@ item.remove(); | ||
var maxSize = this._items.reduce(function (size, _ref7) { | ||
var item = _ref7.item; | ||
var maxSize = this._items.reduce(function (size, _ref6) { | ||
var item = _ref6.item; | ||
@@ -472,4 +471,4 @@ if (item instanceof VirtualItem) { | ||
value: function _enableAnimationHint(enable) { | ||
this._items.forEach(function (_ref8) { | ||
var item = _ref8.item; | ||
this._items.forEach(function (_ref7) { | ||
var item = _ref7.item; | ||
return item.enableAnimationHint(enable); | ||
@@ -539,3 +538,3 @@ }); | ||
this._removeItem(this._items[0]); | ||
this._removeItem(item); | ||
@@ -551,4 +550,4 @@ this._items.shift(); | ||
this._items.some(function (_ref9, i) { | ||
var item = _ref9.item; | ||
this._items.some(function (_ref8, i) { | ||
var item = _ref8.item; | ||
@@ -558,3 +557,3 @@ if (nextOffset >= containerSize) { | ||
_this5._items.splice(i).forEach(function (a) { | ||
return _this5._removeItem(a); | ||
return _this5._removeItem(a.item); | ||
}); | ||
@@ -561,0 +560,0 @@ |
{ | ||
"name": "dynamic-marquee", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "A small library for creating marquees.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/dynamic-marquee.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42227
752