diff --git a/framework/assets/js/app.js b/framework/assets/js/app.js index 66024905..788e8187 100755 --- a/framework/assets/js/app.js +++ b/framework/assets/js/app.js @@ -8,6 +8,7 @@ if (!PhoneGap.hasResource("app")) { PhoneGap.addResource("app"); +(function() { /** * Constructor @@ -79,6 +80,7 @@ App.prototype.exitApp = function() { }; PhoneGap.addConstructor(function() { - navigator.app = window.app = new App(); + navigator.app = new App(); }); +}()); }