window.include Class

Defined in: window.include:5
Module: Core

Used to include required classes by name

Methods

include

(
  • namespaceString
  • [required=true]
)
Object | Function

Defined in include:16

Import a class

Parameters:

  • namespaceString String

    Name space, for instance 'springroll.Application'

  • [required=true] Boolean optional

    If the class we're trying to include is required. For classes that aren't found and are required, an error is thrown.

Returns:

Object | Function:

The object attached at the given namespace

Example:

    var Application = include('springroll.Application');