Skip to content

Instantly share code, notes, and snippets.

@Rockncoder
Created January 5, 2013 17:20
Show Gist options
  • Select an option

  • Save Rockncoder/4462591 to your computer and use it in GitHub Desktop.

Select an option

Save Rockncoder/4462591 to your computer and use it in GitHub Desktop.
Original version of ApplicationWindow.js
//Application Window Component Constructor
function ApplicationWindow() {
//load component dependencies
var KeyPad = require('ui/common/KeyPad');
//create component instance
var self = Ti.UI.createWindow({
backgroundColor:'#000000'
});
//construct UI
var keyPad = new KeyPad();
self.add(keyPad);
return self;
}
//make constructor function the public component interface
module.exports = ApplicationWindow;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment