The main namespace in Lava.
Namespaces
type:
object
description: holds all of the namespaces that have been added to Lava including the global namespace.
Types
type:
typeDefinition
description: contains types that make up Lava: Lava.Object, Lava.ComputedProperty and Lava.Collection.
isReady
type:
boolean
description: a flag used to determine when Lava is ready to start processing against the DOM.
prefix
type:
string
description: the xmlns prefix that is used by Lava for markup.
type
type:
string
description: the type of Lava ("Lava").
ajax
description: performs an HTTP request asynchronously
parameters:
options (object):
a set of key/value pairs used to setup and perform the ajax request
context (object):
the object context that the request should run under
returns: nothing
bind
description: binds an object to a view
parameters:
options (object):
a set of key/value pairs used to setup and perform the bind operation
returns: nothing
extend
description: merges a source object into a target object
parameters:
target (object):
the target object
source (object):
the source object
returns: nothing
get
description: performs an HTTP GET request asynchronously
parameters:
url (string): the url to get
success (function):
a callback function to be executed when the request completes
returns: nothing
getObjectPathValue
description: gets an object at a specified path, starting at a root object
parameters:
root (object): the root object to start the search in
path (string): an object path expression
returns: the nearest object at the paths end (object)
getPropertyPathValue
description: gets the property value of an object property by the property path off of the root object
parameters:
root (object): the root object to look for the property
path (string): an object path expression
boundElement (element):
(optional) an associated DOM element (primarily used for custom collection tags)
returns: result (object)
ready
description: defers execution of a function until the DOM is ready
parameters:
f (function): the function of which to defer execution
returns: nothing
typeOf
description: returns the base type of the specified object
parameters:
a (object): the object to get the type of
returns: the type (string)