scope leak fixed...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-12-14 19:50:39 +03:00
parent 332225e7d3
commit 051c7ab58f
2 changed files with 4 additions and 4 deletions

View File

@ -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": {

View File

@ -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)