Class casual
Basic object of Casual Framework, provides some core functions.
Constructor Attributes | Constructor Name and Description |
---|---|
casual()
No Constructor, cannot be instantiated.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
casual.clone(obj)
Make a new object which is the same type as the parameter obj.
|
<static> |
casual.copy(obj, targetClass, newProperties)
Make a copy of the parameter obj, you also can specify the target class and set new properties.
|
<static> |
casual.delegate(func, self, args)
Delegate the reference of this within functions.
|
<static> |
casual.inherit(childClass, parentClass)
Inheritance implementation for Javascript.
|
<static> |
casual.trace()
Like trace() in as3, for debug purpose.
|
Method Detail
<static>
casual.clone(obj)
Make a new object which is the same type as the parameter obj.
- Parameters:
- obj
<static>
casual.copy(obj, targetClass, newProperties)
Make a copy of the parameter obj, you also can specify the target class and set new properties.
- Parameters:
- obj
- targetClass
- newProperties
<static>
casual.delegate(func, self, args)
Delegate the reference of this within functions.
- Parameters:
- func
- self
- args
<static>
casual.inherit(childClass, parentClass)
Inheritance implementation for Javascript.
- Parameters:
- childClass
- parentClass
<static>
casual.trace()
Like trace() in as3, for debug purpose. you can just use trace().