Created
July 18, 2012 08:21
-
-
Save devinrhode2/3135018 to your computer and use it in GitHub Desktop.
Example enclosure pattern
This file contains 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
/** | |
* Hospitals.js example | |
* by DevinRhode2 | |
*/ | |
//'globals': | |
var Hospitals = {}; | |
(function(){ | |
'use strict'; | |
//not global: | |
var index = 0; | |
//Add a function to your global object | |
Hospitals.external = function HospitalsExternal(){ | |
}; | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment