8000 GitHub - edfuh/namespacer: Don't pollute my global scope bro
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

edfuh/namespacer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#This code had it's use at one point, but now do yourself a favor and use AMD, it will change your life

--

#Namespacer

Because this:

var app = app || {};
app.Utils = app.Utils || {};

is ugly and this:

ns('app.Utils')

looks better. And so does this:

ns('app.Utils', {
    list : [0, 1, 2, 3, 4]
})

About

Don't pollute my global scope bro

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0