Class: Deferred

Deferred

new epiviz.deferred.Deferred(deferred)

deferred/deferred.js, line 15

Wrapper around JQuery Deferred

.

Wrapper around JQuery Deferred

Name Type Description
deferred Deferred optional

Members

staticepiviz.deferred.Deferred.Statestring

Properties:
Name Type Default Description
PENDING string pending
RESOLVED string resolved
REJECTED string rejected

Methods

always(alwaysCallbacks, moreAlwaysCallbacks){epiviz.deferred.Deferred.<T>}

deferred/deferred.js, line 65
Name Type Description
alwaysCallbacks function | Array.<function()>
moreAlwaysCallbacks function | Array.<function()> optional
Returns:
Type Description
epiviz.deferred.Deferred.<T>

done(doneCallbacks, moreDoneCallbacks){epiviz.deferred.Deferred.<T>}

deferred/deferred.js, line 47
Name Type Description
doneCallbacks function | Array.<function(T)>
moreDoneCallbacks function | Array.<function(T)> optional
Returns:
Type Description
epiviz.deferred.Deferred.<T>

fail(failCallbacks, moreFailCallbacks){epiviz.deferred.Deferred.<T>}

deferred/deferred.js, line 56
Name Type Description
failCallbacks function | Array.<function()>
moreFailCallbacks function | Array.<function()> optional
Returns:
Type Description
epiviz.deferred.Deferred.<T>

notify(args)

deferred/deferred.js, line 80
Name Type Description
args Object optional

notifyWith(context, args)

deferred/deferred.js, line 89
Name Type Description
context Object
args Array optional

progress(progressCallbacks, moreProgressCallbacks){epiviz.deferred.Deferred.<T>}

deferred/deferred.js, line 98
Name Type Description
progressCallbacks function | Array.<function()>
moreProgressCallbacks function | Array.<function()> optional
Returns:
Type Description
epiviz.deferred.Deferred.<T>

promise(target){epiviz.deferred.Promise.<T>}

deferred/deferred.js, line 106
Name Type Description
target Object optional
Returns:
Type Description
epiviz.deferred.Promise.<T>

reject(args){epiviz.deferred.Deferred.<T>}

deferred/deferred.js, line 114
Name Type Description
args * optional
Returns:
Type Description
epiviz.deferred.Deferred.<T>

rejectWith(context, args)

deferred/deferred.js, line 123
Name Type Description
context Object
args Array optional

resolve(args){epiviz.deferred.Deferred.<T>}

deferred/deferred.js, line 131
Name Type Description
args * optional
Returns:
Type Description
epiviz.deferred.Deferred.<T>

resolveWith(context, args)

deferred/deferred.js, line 140
Name Type Description
context Object
args Array optional

state(){string}

deferred/deferred.js, line 72
Returns:
Type Description
string

then(doneFilter, failFilter, progressFilter){epiviz.deferred.Promise.<T>}

deferred/deferred.js, line 38
Name Type Description
doneFilter function
failFilter function optional
progressFilter function optional
Returns:
Type Description
epiviz.deferred.Promise.<T>
comments powered by Disqus