-
-
Save codylindley/277836 to your computer and use it in GitHub Desktop.
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
| jQuery(document).ready(function() { | |
| APP.go(); | |
| }); | |
| // | |
| // Module pattern. | |
| // | |
| var APP = (function($) { | |
| var private_var_1 = 'foo'; | |
| var private_var_2 = 'bar'; | |
| return { | |
| go: function() { | |
| for (var i in APP.init) { | |
| APP.init[i](); | |
| } | |
| }, | |
| init: { | |
| zebra: function() { | |
| // Zebra stripe tables. | |
| }, | |
| check_all: function() { | |
| // Check-all checkbox. | |
| } | |
| } | |
| }; | |
| })(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment