Skip to content

Instantly share code, notes, and snippets.

@yappo
Forked from mattn/gist:838338
Created February 22, 2011 07:41
Show Gist options
  • Save yappo/838340 to your computer and use it in GitHub Desktop.
Save yappo/838340 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('それPla')
}
mattn.hasegawayosuke.tokuhirom.Miyagawa()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment