wireapp/webapp-module-namespace

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Wire

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/.

webapp-module-namespace

Small utility to support JavaScript Object Management with namespaces.

Test
install
t test
Usage

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');

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.