Created
November 4, 2011 13:20
-
-
Save craigmarvelley/1339292 to your computer and use it in GitHub Desktop.
Titanium 1.7.5 and underscore.string.js
This file contains hidden or 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
// (Starting line 446) | |
// CommonJS module is defined | |
if (typeof module !== 'undefined' && module.exports) { | |
// Export module | |
module.exports = _s; | |
// Added: Support Titanium's CommonJS implementation) | |
} else if (typeof exports !== 'undefined' && exports) { | |
exports._s = _s; | |
// Integrate with Underscore.js | |
} else if (typeof root._ !== 'undefined') { | |
root._.mixin(_s); | |
// Or define it | |
} else { | |
root._ = _s; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment