Class Index | File Index

Classes


Class Alfresco.util.Deferred

Utility class to defer a function until all supplied conditions have been met via fulfil() call(s).
A callback is only invoked once.

conditions: {Object|String[]} Object literal containing boolean properties (use to preset conditions if required), or an array of strings representing condition names
callback: {Object} Callback function of the form { fn: function, scope: callback scope, obj: optional pass-thru object }
Defined in: alfresco.js
Field Summary
Field Attributes Field Name and Description
<inner>  
Deferred function callback
<inner>  
Condition flags
<inner>  
Expired flag. Ensures callback is only invoked once.
Method Summary
Method Attributes Method Name and Description
<static>  
Alfresco.util.Deferred.expire()
Immediately expires the deferral.
<static>  
Alfresco.util.Deferred.fulfil(name)
Fulfils a condition and subsequently check for all conditions being fulfilled.
Field Detail
<inner> callback
Deferred function callback

<inner> conditions
Condition flags

<inner> expired
Expired flag. Ensures callback is only invoked once.
Method Detail
<static> Alfresco.util.Deferred.expire()
Immediately expires the deferral.

<static> Alfresco.util.Deferred.fulfil(name)
Fulfils a condition and subsequently check for all conditions being fulfilled.
Parameters:
{String} name
The name of the condition to fulfil.

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Feb 16 2012 12:24:28 GMT-0000 (GMT)