Skip to content

Commit

Permalink
added javascript closure to hide win to global scope.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraen committed Dec 26, 2011
1 parent 516457e commit 6d9aa5e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Resources/app.js
Expand Up @@ -6,6 +6,8 @@

Ti.include('/app/tools.js', '/app/TitanTricks.js');

var win = App.ui.createAppWindow();

win.open();
(function(){
var win = App.ui.createAppWindow();

win.open();
})();

0 comments on commit 6d9aa5e

Please sign in to comment.