API Documentation for: 0.1.0
Show:

Utils Class

Defined in: Utils:203
Module: Behavior3JS

List of internal and helper functions in Behavior3JS.

Item Index

Methods

Methods

Class

(
  • [baseClass]
)
Object

Defined in Class:236

Class is a meta-factory function to create classes in JavaScript. It is a shortcut for the CreateJS syntax style. By default, the class created by this function have an initialize function (the constructor). Optionally, you can specify the inheritance by passing another class as parameter.

By default, all classes created using this function, may receives only a settings parameter as argument. This pattern is commonly used by jQuery and its plugins.

Usage

// Creating a simple class
var BaseClass = b3.Class();

// Using inheritance
var ChildClass = b3.Class(BaseClass);

// Defining the constructor
ChildClass.prototype.initialize = function(settings) { ... }

Parameters:

  • [baseClass] Object optional

    The super class.

Returns:

Object:

A new class.

createUUID

() String

Defined in createUUID:210

This function is used to create unique IDs for trees and nodes.

(consult http://www.ietf.org/rfc/rfc4122.txt).

Returns:

String:

A unique ID.