Skip to content

Instantly share code, notes, and snippets.

@jtenner
Created November 8, 2013 18:26
Show Gist options
  • Save jtenner/7375356 to your computer and use it in GitHub Desktop.
Save jtenner/7375356 to your computer and use it in GitHub Desktop.
Basic library constructor definition exposed to the global namespace via the window parameter
!function(window, document, undefined){
function constructorObject(options){
//do something with constructor object here
}
window["constructorObject"] = constructorObject;
}(window,document)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment