Remove _alive from InAppBrowser.js since it didn't catch the case where the browser is closed by the user.
This commit is contained in:
parent
57d14da151
commit
3f9af4fd88
@ -31,7 +31,6 @@ function InAppBrowser() {
|
|||||||
'loaderror' : channel.create('loaderror'),
|
'loaderror' : channel.create('loaderror'),
|
||||||
'exit' : channel.create('exit')
|
'exit' : channel.create('exit')
|
||||||
};
|
};
|
||||||
this._alive = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
InAppBrowser.prototype = {
|
InAppBrowser.prototype = {
|
||||||
@ -41,10 +40,7 @@ InAppBrowser.prototype = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
close: function (eventname) {
|
close: function (eventname) {
|
||||||
if (this._alive) {
|
exec(null, null, "InAppBrowser", "close", []);
|
||||||
this._alive = false;
|
|
||||||
exec(null, null, "InAppBrowser", "close", []);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
show: function (eventname) {
|
show: function (eventname) {
|
||||||
exec(null, null, "InAppBrowser", "show", []);
|
exec(null, null, "InAppBrowser", "show", []);
|
||||||
|
Loading…
Reference in New Issue
Block a user