From 6b84ead3932669bf1d6e77d220b74364327224a9 Mon Sep 17 00:00:00 2001 From: Bryce Curtis Date: Tue, 19 Jul 2011 11:00:13 -0500 Subject: [PATCH] Issue #167: Remove window.app and use navigator.app instead. Remove App() from namespace. --- framework/assets/js/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); }); +}()); }