Skip to content

Instantly share code, notes, and snippets.

@mattn
Created February 22, 2011 07:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mattn/838338 to your computer and use it in GitHub Desktop.
Save mattn/838338 to your computer and use it in GitHub Desktop.
(function(ns) {
var r = typeof window != 'undefined' ? window : this;
[].forEach.call(ns.split("."), function(v) { r = r[v] = {} })
})("mattn.hasegawayosuke.tokuhirom")
mattn.hasegawayosuke.tokuhirom.Miyagawa = function() {
alert('ouffu')
}
mattn.hasegawayosuke.tokuhirom.Miyagawa()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment