Created
March 1, 2014 01:31
-
-
Save dlion/9283451 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
| //Import mixins | |
| var myModule = (function ( JQ, _ ) { | |
| function privateMethod1() { | |
| JQ(".container").html("test"); | |
| } | |
| function privateMethod2() { | |
| console.log( _.min([10, 5, 100, 2, 1000]) ); | |
| } | |
| return { | |
| publicMethod: function() { | |
| privateMethod1(); | |
| } | |
| }; | |
| //Oull in jQuery and Underscore | |
| })( jQuery, _ ); | |
| myModule.publicMethod(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment