window.namespace Class

Defined in: window.namespace:5
Module: Core

Static class for namespacing objects and adding classes to it.

Methods

namespace

(
  • namespaceString
)
Object

Defined in namespace:17

Create the namespace and assing to the window

Parameters:

  • namespaceString String

    Name space, for instance 'springroll.utils'

Returns:

Object:

The namespace object attached to the current window

Example:

    var SpriteUtils = function(){};
    namespace('springroll').SpriteUtils = SpriteUtils;