Created
July 17, 2012 09:02
-
-
Save sifu/3128204 to your computer and use it in GitHub Desktop.
quick & dirty module pattern for modules to be used in the browser environment and node.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
(function(exports){ | |
exports.someExportedFunction = function( ) { }; | |
})(typeof(window)!=='undefined'&&(window.utils={})||exports); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment