API Docs for: 1.0b
Show:

utils.Options Class

Module: Events

A simple mixin for managing an options argument. Mixin uses the defaultOptions property to identify default options. Mixin also automatically identify on* properties as events and assigns them

Constructor

utils.Options

()

Item Index

Methods

Properties

Methods

merge

(
  • target
  • [obj]
)
Object static

merges a list of objects into a single object

Parameters:

  • target Object
  • [obj] Object optional

    an object to merge (can be an infinite list of objects)

Returns:

Object: merged object

setOptions

(
  • options
)
chainable

Parameters:

  • options Object

setOptions

(
  • defaults
  • options
)
Object static

this method acts like merge, only that it only merges properties of the original object

Creates a new object rather than actually merge

Parameters:

  • defaults Object

    a map of default properties

  • options Object

    a map of values to merge

Returns:

Object: new merged object

Properties

defaultOptions

Unknown protected

this property will be used to identify default options