mirror of
https://github.com/flynx/types.js.git
synced 2025-10-29 02:20:07 +00:00
scope leak fixed...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
332225e7d3
commit
051c7ab58f
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ig-types",
|
||||
"version": "5.0.40",
|
||||
"version": "5.0.41",
|
||||
"description": "Generic JavaScript types and type extensions...",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
||||
@ -458,16 +458,16 @@ object.Constructor('Queue', Array, {
|
||||
// ...this is not and will not be done on polling as that would
|
||||
// introduce issues -- queue can change between task runs... (revise!)
|
||||
push: function(...tasks){
|
||||
res = object.parentCall(Queue.prototype.push, this, ...tasks)
|
||||
var res = object.parentCall(Queue.prototype.push, this, ...tasks)
|
||||
this.trigger('tasksAdded', tasks)
|
||||
return res },
|
||||
unsift: function(...tasks){
|
||||
res = object.parentCall(Queue.prototype.unshift, this, ...tasks)
|
||||
var res = object.parentCall(Queue.prototype.unshift, this, ...tasks)
|
||||
this.trigger('tasksAdded', tasks)
|
||||
return res },
|
||||
splice: function(...args){
|
||||
var l = this.length
|
||||
res = object.parentCall(Queue.prototype.splice, this, ...args)
|
||||
var res = object.parentCall(Queue.prototype.splice, this, ...args)
|
||||
var tasks = args.slice(2)
|
||||
tasks.length > 0
|
||||
&& this.trigger('tasksAdded', tasks)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user