Created
November 3, 2014 23:36
-
-
Save pglewis/de74fa616843ff520a52 to your computer and use it in GitHub Desktop.
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
jQuery( function () { | |
My_Object.init( params ); | |
} ); | |
(function ( $, app ) { | |
/** | |
* A variable | |
*/ | |
app.var = 42; | |
/** | |
* Bootstrap | |
*/ | |
app.init = function( params ) { | |
// Do stuff | |
}; | |
/** | |
* Another function | |
*/ | |
app.another_function = function( params ) { | |
//do more stuff | |
}; | |
/** | |
* Events object | |
*/ | |
app.events = { | |
clickHandler : function() { | |
//something | |
}, | |
formSubmitHandler : function() { | |
//something | |
} | |
} | |
})( jQuery, window.My_Object || ( window.My_Object = {} ) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment