mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-24 04:04:31 +00:00
Fixed uncaught exception on exit
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -61,7 +61,7 @@ function windows_notifybar_local(title)
|
||||
.createEvent('close')
|
||||
.addMethod('close', function close()
|
||||
{
|
||||
for (var i in this._pumps)
|
||||
for (var i = 0; i < this._pumps.length; ++i)
|
||||
{
|
||||
this._pumps[i].removeAllListeners('exit');
|
||||
this._pumps[i].close();
|
||||
@@ -100,7 +100,7 @@ function windows_notifybar_local(title)
|
||||
});
|
||||
this.notifybar._pumps.peek().on('exit', function (h)
|
||||
{
|
||||
for(var i in this.notifybar._pumps)
|
||||
for (var i = 0; i < this.notifybar._pumps.length; ++i)
|
||||
{
|
||||
this.notifybar._pumps[i].removeAllListeners('exit');
|
||||
this.notifybar._pumps[i].close();
|
||||
|
||||
Reference in New Issue
Block a user