Name: webapp-module-namespace
Owner: Wire Swiss GmbH
Description: null
Created: 2016-07-12 08:07:24.0
Updated: 2017-10-19 12:29:08.0
Pushed: 2017-10-29 12:42:13.0
Homepage: null
Size: 26
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This repository is part of the source code of Wire. You can find more information at wire.com or by contacting opensource@wire.com.
You can find the published source code at github.com/wireapp/wire.
For licensing information, see the attached LICENSE file and the list of third-party licenses at wire.com/legal/licenses/.
Small utility to support JavaScript Object Management with namespaces.
install
t test
To create a namespace like `zeta.webapp.module.image.rotation
` in plain JavaScript, you have to do something like this:
ow.zeta = window.zeta || {};
.webapp = zeta.webapp || {};
.webapp.module = zeta.webapp.module || {};
.webapp.module.image = zeta.webapp.module.image || {};
.webapp.module.image.rotation = zeta.webapp.module.image.rotation || {};
With this small utility provided here, all you have to do is:
space('zeta.webapp.module.image.rotation');