Skip to content

Instantly share code, notes, and snippets.

@makepanic
Created July 23, 2013 20:12
Show Gist options
  • Save makepanic/6065723 to your computer and use it in GitHub Desktop.
Save makepanic/6065723 to your computer and use it in GitHub Desktop.
Intellij IDEA - File Template for JavaScript Object declaration inside a closure
#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