Created
November 27, 2014 05:39
-
-
Save ui2code/79e20e9b922eb1c9b8ba to your computer and use it in GitHub Desktop.
Workflow Javascript
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
| ;(function( window, document, undefined ) { | |
| "use strict"; | |
| var app = (function() { | |
| var $private = {}; | |
| var $public = {}; | |
| /** | |
| * Private Variables | |
| */ | |
| $private.privateVar = 'private var'; | |
| // ----------------------------------- | |
| /** | |
| * Public Variables | |
| */ | |
| $public.publicVar = 'public var'; | |
| // ----------------------------------- | |
| /** | |
| * Private Methods | |
| */ | |
| $private.privateMethod = function() { | |
| return 'Private method'; | |
| }; | |
| // ----------------------------------- | |
| /** | |
| * Public Methods | |
| */ | |
| $public.publicMethod = function() { | |
| return 'Init'; | |
| }; | |
| // ----------------------------------- | |
| return $public; | |
| })(); | |
| // Global | |
| window.app = app; | |
| console.log( window.app ); | |
| })( window, document ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment