|
@@ -2,30 +2,17 @@
|
|
package js.jquery;
|
|
package js.jquery;
|
|
@:final @:native("$.Deferred") extern class Deferred {
|
|
@:final @:native("$.Deferred") extern class Deferred {
|
|
/**
|
|
/**
|
|
- Add handlers to be called when the Deferred object is resolved, rejected, or still in progress.
|
|
|
|
- **/
|
|
|
|
- public function then(doneFilter:haxe.Constraints.Function, ?failFilter:haxe.Constraints.Function, ?progressFilter:haxe.Constraints.Function):js.jquery.Promise;
|
|
|
|
- /**
|
|
|
|
- Add handlers to be called when the Deferred object is rejected.
|
|
|
|
- **/
|
|
|
|
- public function fail(failCallbacks:haxe.extern.EitherType<haxe.Constraints.Function, Array<haxe.Constraints.Function>>, ?failCallbacks:haxe.extern.EitherType<haxe.Constraints.Function, Array<haxe.Constraints.Function>>):js.jquery.Deferred;
|
|
|
|
- /**
|
|
|
|
- Utility method to filter and/or chain Deferreds.
|
|
|
|
- **/
|
|
|
|
- @:overload(function(?doneFilter:haxe.Constraints.Function, ?failFilter:haxe.Constraints.Function, ?progressFilter:haxe.Constraints.Function):js.jquery.Promise { })
|
|
|
|
- public function pipe(?doneFilter:haxe.Constraints.Function, ?failFilter:haxe.Constraints.Function):js.jquery.Promise;
|
|
|
|
- /**
|
|
|
|
- Reject a Deferred object and call any failCallbacks with the given <code>args</code>.
|
|
|
|
|
|
+ Add handlers to be called when the Deferred object is either resolved or rejected.
|
|
**/
|
|
**/
|
|
- public function reject(?args:Dynamic):js.jquery.Deferred;
|
|
|
|
|
|
+ public function always(alwaysCallbacks:haxe.extern.EitherType<haxe.Constraints.Function, Array<haxe.Constraints.Function>>, ?alwaysCallbacks:haxe.extern.EitherType<haxe.Constraints.Function, Array<haxe.Constraints.Function>>):js.jquery.Deferred;
|
|
/**
|
|
/**
|
|
- Resolve a Deferred object and call any doneCallbacks with the given <code>context</code> and <code>args</code>.
|
|
|
|
|
|
+ Add handlers to be called when the Deferred object is resolved.
|
|
**/
|
|
**/
|
|
- public function resolveWith(context:Dynamic, ?args:Array<Dynamic>):js.jquery.Deferred;
|
|
|
|
|
|
+ public function done(doneCallbacks:haxe.extern.EitherType<haxe.Constraints.Function, Array<haxe.Constraints.Function>>, ?doneCallbacks:haxe.extern.EitherType<haxe.Constraints.Function, Array<haxe.Constraints.Function>>):js.jquery.Deferred;
|
|
/**
|
|
/**
|
|
- Add handlers to be called when the Deferred object is either resolved or rejected.
|
|
|
|
|
|
+ Add handlers to be called when the Deferred object is rejected.
|
|
**/
|
|
**/
|
|
- public function always(alwaysCallbacks:haxe.extern.EitherType<haxe.Constraints.Function, Array<haxe.Constraints.Function>>, ?alwaysCallbacks:haxe.extern.EitherType<haxe.Constraints.Function, Array<haxe.Constraints.Function>>):js.jquery.Deferred;
|
|
|
|
|
|
+ public function fail(failCallbacks:haxe.extern.EitherType<haxe.Constraints.Function, Array<haxe.Constraints.Function>>, ?failCallbacks:haxe.extern.EitherType<haxe.Constraints.Function, Array<haxe.Constraints.Function>>):js.jquery.Deferred;
|
|
/**
|
|
/**
|
|
A factory function that returns a chainable utility object with methods to register multiple callbacks into callback queues, invoke callback queues, and relay the success or failure state of any synchronous or asynchronous function.
|
|
A factory function that returns a chainable utility object with methods to register multiple callbacks into callback queues, invoke callback queues, and relay the success or failure state of any synchronous or asynchronous function.
|
|
**/
|
|
**/
|
|
@@ -40,27 +27,40 @@ package js.jquery;
|
|
**/
|
|
**/
|
|
public function notifyWith(context:Dynamic, ?args:Array<Dynamic>):js.jquery.Deferred;
|
|
public function notifyWith(context:Dynamic, ?args:Array<Dynamic>):js.jquery.Deferred;
|
|
/**
|
|
/**
|
|
- Add handlers to be called when the Deferred object generates progress notifications.
|
|
|
|
|
|
+ Utility method to filter and/or chain Deferreds.
|
|
**/
|
|
**/
|
|
- public function progress(progressCallbacks:haxe.extern.EitherType<haxe.extern.EitherType<haxe.Constraints.Function, Array<haxe.Constraints.Function>>, Array<Dynamic>>, ?progressCallbacks:haxe.extern.EitherType<haxe.extern.EitherType<haxe.Constraints.Function, Array<haxe.Constraints.Function>>, Array<Dynamic>>):js.jquery.Deferred;
|
|
|
|
|
|
+ @:overload(function(?doneFilter:haxe.Constraints.Function, ?failFilter:haxe.Constraints.Function, ?progressFilter:haxe.Constraints.Function):js.jquery.Promise { })
|
|
|
|
+ public function pipe(?doneFilter:haxe.Constraints.Function, ?failFilter:haxe.Constraints.Function):js.jquery.Promise;
|
|
/**
|
|
/**
|
|
- Reject a Deferred object and call any failCallbacks with the given <code>context</code> and <code>args</code>.
|
|
|
|
|
|
+ Add handlers to be called when the Deferred object generates progress notifications.
|
|
**/
|
|
**/
|
|
- public function rejectWith(context:Dynamic, ?args:Array<Dynamic>):js.jquery.Deferred;
|
|
|
|
|
|
+ public function progress(progressCallbacks:haxe.extern.EitherType<haxe.extern.EitherType<haxe.Constraints.Function, Array<haxe.Constraints.Function>>, Array<Dynamic>>, ?progressCallbacks:haxe.extern.EitherType<haxe.extern.EitherType<haxe.Constraints.Function, Array<haxe.Constraints.Function>>, Array<Dynamic>>):js.jquery.Deferred;
|
|
/**
|
|
/**
|
|
Return a Deferred's Promise object.
|
|
Return a Deferred's Promise object.
|
|
**/
|
|
**/
|
|
public function promise(?target:Dynamic):js.jquery.Promise;
|
|
public function promise(?target:Dynamic):js.jquery.Promise;
|
|
/**
|
|
/**
|
|
- Determine the current state of a Deferred object.
|
|
|
|
|
|
+ Reject a Deferred object and call any failCallbacks with the given <code>args</code>.
|
|
**/
|
|
**/
|
|
- public function state():String;
|
|
|
|
|
|
+ public function reject(?args:Dynamic):js.jquery.Deferred;
|
|
/**
|
|
/**
|
|
- Add handlers to be called when the Deferred object is resolved.
|
|
|
|
|
|
+ Reject a Deferred object and call any failCallbacks with the given <code>context</code> and <code>args</code>.
|
|
**/
|
|
**/
|
|
- public function done(doneCallbacks:haxe.extern.EitherType<haxe.Constraints.Function, Array<haxe.Constraints.Function>>, ?doneCallbacks:haxe.extern.EitherType<haxe.Constraints.Function, Array<haxe.Constraints.Function>>):js.jquery.Deferred;
|
|
|
|
|
|
+ public function rejectWith(context:Dynamic, ?args:Array<Dynamic>):js.jquery.Deferred;
|
|
/**
|
|
/**
|
|
Resolve a Deferred object and call any doneCallbacks with the given <code>args</code>.
|
|
Resolve a Deferred object and call any doneCallbacks with the given <code>args</code>.
|
|
**/
|
|
**/
|
|
public function resolve(?args:Dynamic):js.jquery.Deferred;
|
|
public function resolve(?args:Dynamic):js.jquery.Deferred;
|
|
|
|
+ /**
|
|
|
|
+ Resolve a Deferred object and call any doneCallbacks with the given <code>context</code> and <code>args</code>.
|
|
|
|
+ **/
|
|
|
|
+ public function resolveWith(context:Dynamic, ?args:Array<Dynamic>):js.jquery.Deferred;
|
|
|
|
+ /**
|
|
|
|
+ Determine the current state of a Deferred object.
|
|
|
|
+ **/
|
|
|
|
+ public function state():String;
|
|
|
|
+ /**
|
|
|
|
+ Add handlers to be called when the Deferred object is resolved, rejected, or still in progress.
|
|
|
|
+ **/
|
|
|
|
+ public function then(doneFilter:haxe.Constraints.Function, ?failFilter:haxe.Constraints.Function, ?progressFilter:haxe.Constraints.Function):js.jquery.Promise;
|
|
}
|
|
}
|