mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 23:42:53 +08:00
Issue #167: Remove window.app and use navigator.app instead. Remove App() from namespace.
This commit is contained in:
parent
7afa2d3840
commit
6b84ead393
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
if (!PhoneGap.hasResource("app")) {
|
if (!PhoneGap.hasResource("app")) {
|
||||||
PhoneGap.addResource("app");
|
PhoneGap.addResource("app");
|
||||||
|
(function() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
@ -79,6 +80,7 @@ App.prototype.exitApp = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
PhoneGap.addConstructor(function() {
|
PhoneGap.addConstructor(function() {
|
||||||
navigator.app = window.app = new App();
|
navigator.app = new App();
|
||||||
});
|
});
|
||||||
|
}());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user