-
-
Save Shelob9/0fe50f3a66a200ac90d3 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 | |
}; | |
})( jQuery, window.My_Object || ( window.My_Object = {} ) ); |
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 | |
}; | |
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