Created
July 23, 2013 20:12
-
-
Save makepanic/6065723 to your computer and use it in GitHub Desktop.
Intellij IDEA - File Template for JavaScript Object declaration inside a closure
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
#set ($MODULENAME = $NAME.substring(0,1).toUpperCase() + $NAME.substring(1)) | |
/** | |
* Created with ${PRODUCT_NAME}. | |
* User: ${USER} | |
* Date: ${DATE} | |
* Time: ${TIME} | |
*/ | |
;(function(window, undefined){ | |
'use strict'; | |
var ${MODULENAME} = function(){ | |
}; | |
${MODULENAME}.prototype = { | |
}; | |
window.${Namespace}.${MODULENAME} = ${MODULENAME}; | |
})(window) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment