Constructor
new CallbackObject(changedObject, changedAttributes, prevCallbackObjectopt, nextCallbackObjectopt)
Collects and executes callback functions
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
changedObject |
any | Changed object | |
changedAttributes |
Array.<string> | Attributes that changed | |
prevCallbackObject |
CallbackObject |
<optional> |
Previous callback object in the callback chain |
nextCallbackObject |
CallbackObject |
<optional> |
Next callback object in the callback chain |
- Source:
Methods
-
addChangedAttribute(changedAttribute)
-
Adds a changed attribute
Parameters:
Name Type Description changedAttribute
string Attribute that changed - Source:
-
attributeChanged(attribute) → {Boolean}
-
Determines whether the specified attribute changed in the object
Parameters:
Name Type Description attribute
string Attribute name - Source:
Returns:
- Type
- Boolean
-
getChangedAttributes() → {Array.<string>}
-
Returns the attributes that changed
- Source:
Returns:
- Type
- Array.<string>
-
getChangedObject() → {any}
-
Returns the changed object
- Source:
Returns:
- Type
- any
-
getClassDisplayName() → {string}
-
Returns the display name of the class
- Source:
Returns:
- Type
- string
-
getNextCallbackObject() → {CallbackObject}
-
Gets the next callback object in the callback chain
- Source:
Returns:
- Type
- CallbackObject
-
getPrevCallbackObject() → {CallbackObject}
-
Returns the previous callback object in the callback chain
- Source:
Returns:
- Type
- CallbackObject
-
setChangedAttributes(changedAttributes)
-
Sets the changed attributes
Parameters:
Name Type Description changedAttributes
Array.<string> Attributes that changed - Source:
-
setChangedObject(changedObject)
-
Sets the changed object
Parameters:
Name Type Description changedObject
any Object that was changed - Source:
-
setNextCallbackObject(nextCallbackObject, connect)
-
Sets the next callback object in the callback chain
Parameters:
Name Type Description nextCallbackObject
CallbackObject Next callback object in the callback chain connect
- Source:
-
setPrevCallbackObject(prevCallbackObject, connectopt)
-
Sets the previous callback object in the callback chain
Parameters:
Name Type Attributes Description prevCallbackObject
CallbackObject Previous callback object in the callback chain connect
boolean <optional>
Whether to connect to the next object in the callback chain - Source: