Skip to content

Instantly share code, notes, and snippets.

@dawsontoth
Created December 19, 2011 23:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dawsontoth/1499431 to your computer and use it in GitHub Desktop.
Save dawsontoth/1499431 to your computer and use it in GitHub Desktop.
Compiled JS Module in Titanium Mobile
exports.foo = function() {
return 'AHHH!! it works?! wtf...';
};
var win = Ti.UI.createWindow({
backgroundColor: 'white'
});
win.add(Ti.UI.createLabel({
text: require('ti.testjs').foo()
}));
win.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment