Created
December 19, 2011 23:34
-
-
Save dawsontoth/1499431 to your computer and use it in GitHub Desktop.
Compiled JS Module in Titanium Mobile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.foo = function() { | |
return 'AHHH!! it works?! wtf...'; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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