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:
Andrew Grieve 2014-01-07 10:52:44 -05:00
parent 57d14da151
commit 3f9af4fd88

View File

@ -31,7 +31,6 @@ function InAppBrowser() {
'loaderror' : channel.create('loaderror'),
'exit' : channel.create('exit')
};
this._alive = true;
}
InAppBrowser.prototype = {
@ -41,10 +40,7 @@ InAppBrowser.prototype = {
}
},
close: function (eventname) {
if (this._alive) {
this._alive = false;
exec(null, null, "InAppBrowser", "close", []);
}
exec(null, null, "InAppBrowser", "close", []);
},
show: function (eventname) {
exec(null, null, "InAppBrowser", "show", []);