Created
July 29, 2011 15:38
-
-
Save robflaherty/1114060 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
| var app = (function(testMode) { | |
| //Private methods | |
| var method1 = function() {}; | |
| var method2 = function() {}; | |
| //Public methods | |
| var method3 = function() {}; | |
| var method4 = function() {}; | |
| if (!testMode) { | |
| return { | |
| method3: method3, | |
| method4: method4 | |
| }; | |
| } else { | |
| return { | |
| method1: method1, | |
| method2: method2, | |
| method3: method3, | |
| method4: method4 | |
| }; | |
| } | |
| })(testMode); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment