Class Index | File Index

Classes


Class M.Object


Defined in: object.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
The type of this object.
Method Summary
Method Attributes Method Name and Description
 
bindToCaller(caller, method, arg)
Binds a method to its caller, so it is always executed within the right scope.
 
create(proto)
Creates an object based on a passed prototype.
 
This method will remove an object from the DOM and then delete it.
 
extend(properties)
Creates a new class and extends it with all functions of the defined super class The function takes multiple input arguments.
 
get(key)
Returns the class property behind the given key.
 
include(properties)
Includes passed properties into a given object.
 
set(key, value)
Returns the class property behind the given key.
Class Detail
M.Object()
Field Detail
{String} type
The type of this object.
Method Detail
bindToCaller(caller, method, arg)
Binds a method to its caller, so it is always executed within the right scope.
Parameters:
{Object} caller
The scope of the method that should be bound.
{Object} method
The method to be bound.
{Object} arg
One or more arguments. If more, then apply is used instead of call.

create(proto)
Creates an object based on a passed prototype.
Parameters:
{Object} proto
The prototype of the new object.

destroy()
This method will remove an object from the DOM and then delete it.

extend(properties)
Creates a new class and extends it with all functions of the defined super class The function takes multiple input arguments. Each argument serves as additional super classes - see mixins.
Parameters:
{Object} properties
The properties to be included into the given object.

get(key)
Returns the class property behind the given key.
Parameters:
{String} key
The key of the property to be returned.

include(properties)
Includes passed properties into a given object.
Parameters:
{Object} properties
The properties to be included into the given object.

set(key, value)
Returns the class property behind the given key.
Parameters:
{String} key
The key of the property to be changed.
{Object|String} value
The value to be set.

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jan 25 2012 20:41:10 GMT+0100 (MEZ)