Socket
Socket
Sign inDemoInstall

@pixi/runner

Package Overview
Dependencies
Maintainers
3
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixi/runner - npm Package Compare versions

Comparing version 5.1.1 to 5.2.0

312

dist/runner.js
/*!
* @pixi/runner - v5.1.1
* Compiled Fri, 02 Aug 2019 23:20:23 UTC
* @pixi/runner - v5.2.0
* Compiled Wed, 06 Nov 2019 02:32:43 UTC
*

@@ -19,4 +19,6 @@ * @pixi/runner is licensed under the MIT License.

* ```
* import { Runner } from '@pixi/runner';
*
* const myObject = {
* loaded: new PIXI.Runner('loaded')
* loaded: new Runner('loaded')
* }

@@ -37,4 +39,6 @@ *

* ```
* import { Runner } from '@pixi/runner';
*
* const myGame = {
* update: new PIXI.Runner('update')
* update: new Runner('update')
* }

@@ -55,166 +59,146 @@ *

*/
var Runner = function Runner(name)
{
this.items = [];
this._name = name;
this._aliasCount = 0;
};
var prototypeAccessors = { empty: { configurable: true },name: { configurable: true } };
/**
* Dispatch/Broadcast Runner to all listeners added to the queue.
* @param {...any} params - optional parameters to pass to each listener
*/
Runner.prototype.emit = function emit (a0, a1, a2, a3, a4, a5, a6, a7)
{
if (arguments.length > 8)
{
throw new Error('max arguments reached');
}
var ref = this;
var name = ref.name;
var items = ref.items;
this._aliasCount++;
for (var i = 0, len = items.length; i < len; i++)
{
items[i][name](a0, a1, a2, a3, a4, a5, a6, a7);
}
if (items === this.items)
{
this._aliasCount--;
}
return this;
};
Runner.prototype.ensureNonAliasedItems = function ensureNonAliasedItems ()
{
if (this._aliasCount > 0 && this.items.length > 1)
{
var Runner = /** @class */ (function () {
/**
* @param {string} name the function name that will be executed on the listeners added to this Runner.
*/
function Runner(name) {
this.items = [];
this._name = name;
this._aliasCount = 0;
this.items = this.items.slice(0);
}
};
/**
* Add a listener to the Runner
*
* Runners do not need to have scope or functions passed to them.
* All that is required is to pass the listening object and ensure that it has contains a function that has the same name
* as the name provided to the Runner when it was created.
*
* Eg A listener passed to this Runner will require a 'complete' function.
*
* ```
* const complete = new PIXI.Runner('complete');
* ```
*
* The scope used will be the object itself.
*
* @param {any} item - The object that will be listening.
*/
Runner.prototype.add = function add (item)
{
if (item[this._name])
{
/**
* Dispatch/Broadcast Runner to all listeners added to the queue.
* @param {...any} params - optional parameters to pass to each listener
* @return {PIXI.Runner}
*/
Runner.prototype.emit = function (a0, a1, a2, a3, a4, a5, a6, a7) {
if (arguments.length > 8) {
throw new Error('max arguments reached');
}
var _a = this, name = _a.name, items = _a.items;
this._aliasCount++;
for (var i = 0, len = items.length; i < len; i++) {
items[i][name](a0, a1, a2, a3, a4, a5, a6, a7);
}
if (items === this.items) {
this._aliasCount--;
}
return this;
};
Runner.prototype.ensureNonAliasedItems = function () {
if (this._aliasCount > 0 && this.items.length > 1) {
this._aliasCount = 0;
this.items = this.items.slice(0);
}
};
/**
* Add a listener to the Runner
*
* Runners do not need to have scope or functions passed to them.
* All that is required is to pass the listening object and ensure that it has contains a function that has the same name
* as the name provided to the Runner when it was created.
*
* Eg A listener passed to this Runner will require a 'complete' function.
*
* ```
* import { Runner } from '@pixi/runner';
*
* const complete = new Runner('complete');
* ```
*
* The scope used will be the object itself.
*
* @param {any} item - The object that will be listening.
* @return {PIXI.Runner}
*/
Runner.prototype.add = function (item) {
if (item[this._name]) {
this.ensureNonAliasedItems();
this.remove(item);
this.items.push(item);
}
return this;
};
/**
* Remove a single listener from the dispatch queue.
* @param {any} item - The listenr that you would like to remove.
* @return {PIXI.Runner}
*/
Runner.prototype.remove = function (item) {
var index = this.items.indexOf(item);
if (index !== -1) {
this.ensureNonAliasedItems();
this.items.splice(index, 1);
}
return this;
};
/**
* Check to see if the listener is already in the Runner
* @param {any} item - The listener that you would like to check.
*/
Runner.prototype.contains = function (item) {
return this.items.indexOf(item) !== -1;
};
/**
* Remove all listeners from the Runner
* @return {PIXI.Runner}
*/
Runner.prototype.removeAll = function () {
this.ensureNonAliasedItems();
this.remove(item);
this.items.push(item);
}
this.items.length = 0;
return this;
};
/**
* Remove all references, don't use after this.
*/
Runner.prototype.destroy = function () {
this.removeAll();
this.items = null;
this._name = null;
};
Object.defineProperty(Runner.prototype, "empty", {
/**
* `true` if there are no this Runner contains no listeners
*
* @member {boolean}
* @readonly
*/
get: function () {
return this.items.length === 0;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Runner.prototype, "name", {
/**
* The name of the runner.
*
* @member {string}
* @readonly
*/
get: function () {
return this._name;
},
enumerable: true,
configurable: true
});
return Runner;
}());
Object.defineProperties(Runner.prototype, {
/**
* Alias for `emit`
* @memberof PIXI.Runner#
* @method dispatch
* @see PIXI.Runner#emit
*/
dispatch: { value: Runner.prototype.emit },
/**
* Alias for `emit`
* @memberof PIXI.Runner#
* @method run
* @see PIXI.Runner#emit
*/
run: { value: Runner.prototype.emit },
});
return this;
};
/**
* Remove a single listener from the dispatch queue.
* @param {any} item - The listenr that you would like to remove.
*/
Runner.prototype.remove = function remove (item)
{
var index = this.items.indexOf(item);
if (index !== -1)
{
this.ensureNonAliasedItems();
this.items.splice(index, 1);
}
return this;
};
/**
* Check to see if the listener is already in the Runner
* @param {any} item - The listener that you would like to check.
*/
Runner.prototype.contains = function contains (item)
{
return this.items.indexOf(item) !== -1;
};
/**
* Remove all listeners from the Runner
*/
Runner.prototype.removeAll = function removeAll ()
{
this.ensureNonAliasedItems();
this.items.length = 0;
return this;
};
/**
* Remove all references, don't use after this.
*/
Runner.prototype.destroy = function destroy ()
{
this.removeAll();
this.items = null;
this._name = null;
};
/**
* `true` if there are no this Runner contains no listeners
*
* @member {boolean}
* @readonly
*/
prototypeAccessors.empty.get = function ()
{
return this.items.length === 0;
};
/**
* The name of the runner.
*
* @member {string}
* @readonly
*/
prototypeAccessors.name.get = function ()
{
return this._name;
};
Object.defineProperties( Runner.prototype, prototypeAccessors );
/**
* Alias for `emit`
* @memberof PIXI.Runner#
* @method dispatch
* @see PIXI.Runner#emit
*/
Runner.prototype.dispatch = Runner.prototype.emit;
/**
* Alias for `emit`
* @memberof PIXI.Runner#
* @method run
* @see PIXI.Runner#emit
*/
Runner.prototype.run = Runner.prototype.emit;
exports.Runner = Runner;

@@ -221,0 +205,0 @@

/*!
* @pixi/runner - v5.1.1
* Compiled Fri, 02 Aug 2019 23:20:23 UTC
* @pixi/runner - v5.2.0
* Compiled Wed, 06 Nov 2019 02:32:43 UTC
*

@@ -8,3 +8,3 @@ * @pixi/runner is licensed under the MIT License.

*/
this.PIXI=this.PIXI||{};var _pixi_runner=function(t){"use strict";var e=function(t){this.items=[],this._name=t,this._aliasCount=0},i={empty:{configurable:!0},name:{configurable:!0}};return e.prototype.emit=function(t,e,i,s,n,r,o,h){if(arguments.length>8)throw new Error("max arguments reached");var u=this.name,a=this.items;this._aliasCount++;for(var m=0,p=a.length;m<p;m++)a[m][u](t,e,i,s,n,r,o,h);return a===this.items&&this._aliasCount--,this},e.prototype.ensureNonAliasedItems=function(){this._aliasCount>0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},e.prototype.add=function(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this},e.prototype.remove=function(t){var e=this.items.indexOf(t);return-1!==e&&(this.ensureNonAliasedItems(),this.items.splice(e,1)),this},e.prototype.contains=function(t){return-1!==this.items.indexOf(t)},e.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},e.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},i.empty.get=function(){return 0===this.items.length},i.name.get=function(){return this._name},Object.defineProperties(e.prototype,i),e.prototype.dispatch=e.prototype.emit,e.prototype.run=e.prototype.emit,t.Runner=e,t}({});Object.assign(this.PIXI,_pixi_runner);
this.PIXI=this.PIXI||{};var _pixi_runner=function(t){"use strict";var e=function(){function t(t){this.items=[],this._name=t,this._aliasCount=0}return t.prototype.emit=function(t,e,i,n,s,r,o,u){if(arguments.length>8)throw new Error("max arguments reached");var h=this.name,a=this.items;this._aliasCount++;for(var m=0,p=a.length;m<p;m++)a[m][h](t,e,i,n,s,r,o,u);return a===this.items&&this._aliasCount--,this},t.prototype.ensureNonAliasedItems=function(){this._aliasCount>0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},t.prototype.add=function(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this},t.prototype.remove=function(t){var e=this.items.indexOf(t);return-1!==e&&(this.ensureNonAliasedItems(),this.items.splice(e,1)),this},t.prototype.contains=function(t){return-1!==this.items.indexOf(t)},t.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},t.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(t.prototype,"empty",{get:function(){return 0===this.items.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),t}();return Object.defineProperties(e.prototype,{dispatch:{value:e.prototype.emit},run:{value:e.prototype.emit}}),t.Runner=e,t}({});Object.assign(this.PIXI,_pixi_runner);
//# sourceMappingURL=runner.min.js.map
/*!
* @pixi/runner - v5.1.1
* Compiled Fri, 02 Aug 2019 23:20:23 UTC
* @pixi/runner - v5.2.0
* Compiled Wed, 06 Nov 2019 02:32:43 UTC
*

@@ -15,4 +15,6 @@ * @pixi/runner is licensed under the MIT License.

* ```
* import { Runner } from '@pixi/runner';
*
* const myObject = {
* loaded: new PIXI.Runner('loaded')
* loaded: new Runner('loaded')
* }

@@ -33,4 +35,6 @@ *

* ```
* import { Runner } from '@pixi/runner';
*
* const myGame = {
* update: new PIXI.Runner('update')
* update: new Runner('update')
* }

@@ -51,167 +55,147 @@ *

*/
var Runner = function Runner(name)
{
this.items = [];
this._name = name;
this._aliasCount = 0;
};
var prototypeAccessors = { empty: { configurable: true },name: { configurable: true } };
/**
* Dispatch/Broadcast Runner to all listeners added to the queue.
* @param {...any} params - optional parameters to pass to each listener
*/
Runner.prototype.emit = function emit (a0, a1, a2, a3, a4, a5, a6, a7)
{
if (arguments.length > 8)
{
throw new Error('max arguments reached');
}
var ref = this;
var name = ref.name;
var items = ref.items;
this._aliasCount++;
for (var i = 0, len = items.length; i < len; i++)
{
items[i][name](a0, a1, a2, a3, a4, a5, a6, a7);
}
if (items === this.items)
{
this._aliasCount--;
}
return this;
};
Runner.prototype.ensureNonAliasedItems = function ensureNonAliasedItems ()
{
if (this._aliasCount > 0 && this.items.length > 1)
{
var Runner = /** @class */ (function () {
/**
* @param {string} name the function name that will be executed on the listeners added to this Runner.
*/
function Runner(name) {
this.items = [];
this._name = name;
this._aliasCount = 0;
this.items = this.items.slice(0);
}
};
/**
* Add a listener to the Runner
*
* Runners do not need to have scope or functions passed to them.
* All that is required is to pass the listening object and ensure that it has contains a function that has the same name
* as the name provided to the Runner when it was created.
*
* Eg A listener passed to this Runner will require a 'complete' function.
*
* ```
* const complete = new PIXI.Runner('complete');
* ```
*
* The scope used will be the object itself.
*
* @param {any} item - The object that will be listening.
*/
Runner.prototype.add = function add (item)
{
if (item[this._name])
{
/**
* Dispatch/Broadcast Runner to all listeners added to the queue.
* @param {...any} params - optional parameters to pass to each listener
* @return {PIXI.Runner}
*/
Runner.prototype.emit = function (a0, a1, a2, a3, a4, a5, a6, a7) {
if (arguments.length > 8) {
throw new Error('max arguments reached');
}
var _a = this, name = _a.name, items = _a.items;
this._aliasCount++;
for (var i = 0, len = items.length; i < len; i++) {
items[i][name](a0, a1, a2, a3, a4, a5, a6, a7);
}
if (items === this.items) {
this._aliasCount--;
}
return this;
};
Runner.prototype.ensureNonAliasedItems = function () {
if (this._aliasCount > 0 && this.items.length > 1) {
this._aliasCount = 0;
this.items = this.items.slice(0);
}
};
/**
* Add a listener to the Runner
*
* Runners do not need to have scope or functions passed to them.
* All that is required is to pass the listening object and ensure that it has contains a function that has the same name
* as the name provided to the Runner when it was created.
*
* Eg A listener passed to this Runner will require a 'complete' function.
*
* ```
* import { Runner } from '@pixi/runner';
*
* const complete = new Runner('complete');
* ```
*
* The scope used will be the object itself.
*
* @param {any} item - The object that will be listening.
* @return {PIXI.Runner}
*/
Runner.prototype.add = function (item) {
if (item[this._name]) {
this.ensureNonAliasedItems();
this.remove(item);
this.items.push(item);
}
return this;
};
/**
* Remove a single listener from the dispatch queue.
* @param {any} item - The listenr that you would like to remove.
* @return {PIXI.Runner}
*/
Runner.prototype.remove = function (item) {
var index = this.items.indexOf(item);
if (index !== -1) {
this.ensureNonAliasedItems();
this.items.splice(index, 1);
}
return this;
};
/**
* Check to see if the listener is already in the Runner
* @param {any} item - The listener that you would like to check.
*/
Runner.prototype.contains = function (item) {
return this.items.indexOf(item) !== -1;
};
/**
* Remove all listeners from the Runner
* @return {PIXI.Runner}
*/
Runner.prototype.removeAll = function () {
this.ensureNonAliasedItems();
this.remove(item);
this.items.push(item);
}
this.items.length = 0;
return this;
};
/**
* Remove all references, don't use after this.
*/
Runner.prototype.destroy = function () {
this.removeAll();
this.items = null;
this._name = null;
};
Object.defineProperty(Runner.prototype, "empty", {
/**
* `true` if there are no this Runner contains no listeners
*
* @member {boolean}
* @readonly
*/
get: function () {
return this.items.length === 0;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Runner.prototype, "name", {
/**
* The name of the runner.
*
* @member {string}
* @readonly
*/
get: function () {
return this._name;
},
enumerable: true,
configurable: true
});
return Runner;
}());
Object.defineProperties(Runner.prototype, {
/**
* Alias for `emit`
* @memberof PIXI.Runner#
* @method dispatch
* @see PIXI.Runner#emit
*/
dispatch: { value: Runner.prototype.emit },
/**
* Alias for `emit`
* @memberof PIXI.Runner#
* @method run
* @see PIXI.Runner#emit
*/
run: { value: Runner.prototype.emit },
});
return this;
};
/**
* Remove a single listener from the dispatch queue.
* @param {any} item - The listenr that you would like to remove.
*/
Runner.prototype.remove = function remove (item)
{
var index = this.items.indexOf(item);
if (index !== -1)
{
this.ensureNonAliasedItems();
this.items.splice(index, 1);
}
return this;
};
/**
* Check to see if the listener is already in the Runner
* @param {any} item - The listener that you would like to check.
*/
Runner.prototype.contains = function contains (item)
{
return this.items.indexOf(item) !== -1;
};
/**
* Remove all listeners from the Runner
*/
Runner.prototype.removeAll = function removeAll ()
{
this.ensureNonAliasedItems();
this.items.length = 0;
return this;
};
/**
* Remove all references, don't use after this.
*/
Runner.prototype.destroy = function destroy ()
{
this.removeAll();
this.items = null;
this._name = null;
};
/**
* `true` if there are no this Runner contains no listeners
*
* @member {boolean}
* @readonly
*/
prototypeAccessors.empty.get = function ()
{
return this.items.length === 0;
};
/**
* The name of the runner.
*
* @member {string}
* @readonly
*/
prototypeAccessors.name.get = function ()
{
return this._name;
};
Object.defineProperties( Runner.prototype, prototypeAccessors );
/**
* Alias for `emit`
* @memberof PIXI.Runner#
* @method dispatch
* @see PIXI.Runner#emit
*/
Runner.prototype.dispatch = Runner.prototype.emit;
/**
* Alias for `emit`
* @memberof PIXI.Runner#
* @method run
* @see PIXI.Runner#emit
*/
Runner.prototype.run = Runner.prototype.emit;
export { Runner };
//# sourceMappingURL=runner.es.js.map
/*!
* @pixi/runner - v5.1.1
* Compiled Fri, 02 Aug 2019 23:20:23 UTC
* @pixi/runner - v5.2.0
* Compiled Wed, 06 Nov 2019 02:32:43 UTC
*

@@ -19,4 +19,6 @@ * @pixi/runner is licensed under the MIT License.

* ```
* import { Runner } from '@pixi/runner';
*
* const myObject = {
* loaded: new PIXI.Runner('loaded')
* loaded: new Runner('loaded')
* }

@@ -37,4 +39,6 @@ *

* ```
* import { Runner } from '@pixi/runner';
*
* const myGame = {
* update: new PIXI.Runner('update')
* update: new Runner('update')
* }

@@ -55,167 +59,147 @@ *

*/
var Runner = function Runner(name)
{
this.items = [];
this._name = name;
this._aliasCount = 0;
};
var prototypeAccessors = { empty: { configurable: true },name: { configurable: true } };
/**
* Dispatch/Broadcast Runner to all listeners added to the queue.
* @param {...any} params - optional parameters to pass to each listener
*/
Runner.prototype.emit = function emit (a0, a1, a2, a3, a4, a5, a6, a7)
{
if (arguments.length > 8)
{
throw new Error('max arguments reached');
}
var ref = this;
var name = ref.name;
var items = ref.items;
this._aliasCount++;
for (var i = 0, len = items.length; i < len; i++)
{
items[i][name](a0, a1, a2, a3, a4, a5, a6, a7);
}
if (items === this.items)
{
this._aliasCount--;
}
return this;
};
Runner.prototype.ensureNonAliasedItems = function ensureNonAliasedItems ()
{
if (this._aliasCount > 0 && this.items.length > 1)
{
var Runner = /** @class */ (function () {
/**
* @param {string} name the function name that will be executed on the listeners added to this Runner.
*/
function Runner(name) {
this.items = [];
this._name = name;
this._aliasCount = 0;
this.items = this.items.slice(0);
}
};
/**
* Add a listener to the Runner
*
* Runners do not need to have scope or functions passed to them.
* All that is required is to pass the listening object and ensure that it has contains a function that has the same name
* as the name provided to the Runner when it was created.
*
* Eg A listener passed to this Runner will require a 'complete' function.
*
* ```
* const complete = new PIXI.Runner('complete');
* ```
*
* The scope used will be the object itself.
*
* @param {any} item - The object that will be listening.
*/
Runner.prototype.add = function add (item)
{
if (item[this._name])
{
/**
* Dispatch/Broadcast Runner to all listeners added to the queue.
* @param {...any} params - optional parameters to pass to each listener
* @return {PIXI.Runner}
*/
Runner.prototype.emit = function (a0, a1, a2, a3, a4, a5, a6, a7) {
if (arguments.length > 8) {
throw new Error('max arguments reached');
}
var _a = this, name = _a.name, items = _a.items;
this._aliasCount++;
for (var i = 0, len = items.length; i < len; i++) {
items[i][name](a0, a1, a2, a3, a4, a5, a6, a7);
}
if (items === this.items) {
this._aliasCount--;
}
return this;
};
Runner.prototype.ensureNonAliasedItems = function () {
if (this._aliasCount > 0 && this.items.length > 1) {
this._aliasCount = 0;
this.items = this.items.slice(0);
}
};
/**
* Add a listener to the Runner
*
* Runners do not need to have scope or functions passed to them.
* All that is required is to pass the listening object and ensure that it has contains a function that has the same name
* as the name provided to the Runner when it was created.
*
* Eg A listener passed to this Runner will require a 'complete' function.
*
* ```
* import { Runner } from '@pixi/runner';
*
* const complete = new Runner('complete');
* ```
*
* The scope used will be the object itself.
*
* @param {any} item - The object that will be listening.
* @return {PIXI.Runner}
*/
Runner.prototype.add = function (item) {
if (item[this._name]) {
this.ensureNonAliasedItems();
this.remove(item);
this.items.push(item);
}
return this;
};
/**
* Remove a single listener from the dispatch queue.
* @param {any} item - The listenr that you would like to remove.
* @return {PIXI.Runner}
*/
Runner.prototype.remove = function (item) {
var index = this.items.indexOf(item);
if (index !== -1) {
this.ensureNonAliasedItems();
this.items.splice(index, 1);
}
return this;
};
/**
* Check to see if the listener is already in the Runner
* @param {any} item - The listener that you would like to check.
*/
Runner.prototype.contains = function (item) {
return this.items.indexOf(item) !== -1;
};
/**
* Remove all listeners from the Runner
* @return {PIXI.Runner}
*/
Runner.prototype.removeAll = function () {
this.ensureNonAliasedItems();
this.remove(item);
this.items.push(item);
}
this.items.length = 0;
return this;
};
/**
* Remove all references, don't use after this.
*/
Runner.prototype.destroy = function () {
this.removeAll();
this.items = null;
this._name = null;
};
Object.defineProperty(Runner.prototype, "empty", {
/**
* `true` if there are no this Runner contains no listeners
*
* @member {boolean}
* @readonly
*/
get: function () {
return this.items.length === 0;
},
enumerable: true,
configurable: true
});
Object.defineProperty(Runner.prototype, "name", {
/**
* The name of the runner.
*
* @member {string}
* @readonly
*/
get: function () {
return this._name;
},
enumerable: true,
configurable: true
});
return Runner;
}());
Object.defineProperties(Runner.prototype, {
/**
* Alias for `emit`
* @memberof PIXI.Runner#
* @method dispatch
* @see PIXI.Runner#emit
*/
dispatch: { value: Runner.prototype.emit },
/**
* Alias for `emit`
* @memberof PIXI.Runner#
* @method run
* @see PIXI.Runner#emit
*/
run: { value: Runner.prototype.emit },
});
return this;
};
/**
* Remove a single listener from the dispatch queue.
* @param {any} item - The listenr that you would like to remove.
*/
Runner.prototype.remove = function remove (item)
{
var index = this.items.indexOf(item);
if (index !== -1)
{
this.ensureNonAliasedItems();
this.items.splice(index, 1);
}
return this;
};
/**
* Check to see if the listener is already in the Runner
* @param {any} item - The listener that you would like to check.
*/
Runner.prototype.contains = function contains (item)
{
return this.items.indexOf(item) !== -1;
};
/**
* Remove all listeners from the Runner
*/
Runner.prototype.removeAll = function removeAll ()
{
this.ensureNonAliasedItems();
this.items.length = 0;
return this;
};
/**
* Remove all references, don't use after this.
*/
Runner.prototype.destroy = function destroy ()
{
this.removeAll();
this.items = null;
this._name = null;
};
/**
* `true` if there are no this Runner contains no listeners
*
* @member {boolean}
* @readonly
*/
prototypeAccessors.empty.get = function ()
{
return this.items.length === 0;
};
/**
* The name of the runner.
*
* @member {string}
* @readonly
*/
prototypeAccessors.name.get = function ()
{
return this._name;
};
Object.defineProperties( Runner.prototype, prototypeAccessors );
/**
* Alias for `emit`
* @memberof PIXI.Runner#
* @method dispatch
* @see PIXI.Runner#emit
*/
Runner.prototype.dispatch = Runner.prototype.emit;
/**
* Alias for `emit`
* @memberof PIXI.Runner#
* @method run
* @see PIXI.Runner#emit
*/
Runner.prototype.run = Runner.prototype.emit;
exports.Runner = Runner;
//# sourceMappingURL=runner.js.map
{
"name": "@pixi/runner",
"version": "5.1.1",
"version": "5.2.0",
"main": "lib/runner.js",

@@ -41,3 +41,3 @@ "module": "lib/runner.es.js",

],
"gitHead": "40e1e4a12518ee067c6871dcdd930602346197de"
"gitHead": "aaf96b460582b83a1fa73037ef2dd69dd9e84415"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc