Skip to content

Instantly share code, notes, and snippets.

@iskugor
Created August 24, 2012 14:03
Show Gist options
  • Save iskugor/3450924 to your computer and use it in GitHub Desktop.
Save iskugor/3450924 to your computer and use it in GitHub Desktop.
Titanium atomic boomb :)
# run on Android
var i = 0;
var win = {
backgroundColor: '#000',
__TiElement: null,
__getTiElement: function() {
if (!this.__TiElement) {
this.__TiElement = Ti.UI.createWindow(this);
}
return this.__TiElement;
},
open: function() {
Ti.API.info(i++);
this.__getTiElement().open();
}
};
win.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment