Created
February 13, 2014 19:32
-
-
Save ChezFre/8982144 to your computer and use it in GitHub Desktop.
Main Javascript file, wrapped in JQuery closure
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
| var main; | |
| (function($) { | |
| /* | |
| * Main | |
| * | |
| * @return init - public constructor | |
| */ | |
| main = function() { | |
| /* | |
| * destroy — Undo all customization and unlink all eventlisteners created by main | |
| * | |
| */ | |
| var destroy = function() { | |
| } | |
| /* | |
| * _addEventListeners | |
| * | |
| */ | |
| var _addEventListeners = function() { | |
| } | |
| /* | |
| * init | |
| * | |
| */ | |
| var init = function() { | |
| _addEventListeners(); | |
| } | |
| return { | |
| init : init, | |
| destroy : destroy | |
| } | |
| }(); | |
| $(main.init); // initialize main application on dom ready | |
| })(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment