Skip to content

Instantly share code, notes, and snippets.

@Shelob9
Forked from pglewis/gist:9670073921985e2848cf
Last active August 29, 2015 14:07
Show Gist options
  • Save Shelob9/0fe50f3a66a200ac90d3 to your computer and use it in GitHub Desktop.
Save Shelob9/0fe50f3a66a200ac90d3 to your computer and use it in GitHub Desktop.
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
};
})( jQuery, window.My_Object || ( window.My_Object = {} ) );
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
};
app.events.clickHandler = function() {
//something
}
app.events.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