Skip to content

Instantly share code, notes, and snippets.

@OscarGodson
Created January 5, 2012 06:42
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save OscarGodson/b508c8234828e6ab55b8 to your computer and use it in GitHub Desktop.
Save OscarGodson/b508c8234828e6ab55b8 to your computer and use it in GitHub Desktop.
(function( window, undefined ) {
var _ = function(sel){
var _api = {
source: function(src){
this.src = src;
return this;
},
map: function(action){
if(action == 'create'){
document.write(this.src)
}
return this;
}
}
return _api
}
window._ = _;
})(window);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment