Class: Wraith

Defined in: src/wraith.coffee

Overview

Global Wraith Object Contains a list of Collections, Models, and Controllers

Author:

Copyright:

Version:

Constant Summary

DEBUG =

Essentially allow logging or not

false
UIEVENTS =

List of acceptable UIEVENTS

['click', 'dblclick', 'mousedown', 'mouseup', 'mousemove', 'scroll', 'keypress', 'keyup', 'keydown', 'change', 'blur', 'focus', 'submit']

Class Method Summary

Class Method Details

+ (void) log(args...)

Logs to the console if DEBUG is set to true

+ (void) isFunction(obj)

Checks to see if a given object is a funciton.

Parameters:

  • obj (Object) The object to test

+ (void) uniqueId(length = 16, prefix = "")

Generates a UID at the desired length

Parameters:

  • length (Number) Desired length of the UID
  • prefix (String) A prefix to append to the UID