ソースを参照

sync jQueryExtern (b9bad086154134927a8208bf7738e6ae7078bea4)
It is basically regenerated incorporating the manual change in commit 8e89e62dc82040deef40ec7421bd14e58d2d69ae.

Andy Li 10 年 前
コミット
0e8e1340bd

+ 15 - 15
std/js/jquery/Deferred.hx

@@ -2,65 +2,65 @@
 package js.jquery;
 @:native("$.Deferred") extern class 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 either resolved or 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;
 	/**
-		 Add handlers to be called when the Deferred object is resolved. 
+		Add handlers to be called when the Deferred object is resolved.
 	**/
 	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 rejected. 
+		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;
 	/**
-		 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.
 	**/
 	@:selfCall
 	public function new(?beforeStart:js.jquery.Deferred -> Void):Void;
 	/**
-		 Call the progressCallbacks on a Deferred object with the given <code>args</code>. 
+		Call the progressCallbacks on a Deferred object with the given <code>args</code>.
 	**/
 	public function notify(args:Dynamic):js.jquery.Deferred;
 	/**
-		 Call the progressCallbacks on a Deferred object with the given context and <code>args</code>. 
+		Call the progressCallbacks on a Deferred object with the given context and <code>args</code>.
 	**/
 	public function notifyWith(context:Dynamic, ?args:Array<Dynamic>):js.jquery.Deferred;
 	/**
-		 Utility method to filter and/or chain Deferreds.  
+		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;
 	/**
-		 Add handlers to be called when the Deferred object generates progress notifications.
+		Add handlers to be called when the Deferred object generates progress notifications.
 	**/
 	public function progress(progressCallbacks:haxe.extern.EitherType<haxe.Constraints.Function, haxe.extern.EitherType<Array<Dynamic>, Array<haxe.Constraints.Function>>>, ?progressCallbacks:haxe.extern.EitherType<haxe.Constraints.Function, haxe.extern.EitherType<Array<Dynamic>, Array<haxe.Constraints.Function>>>):js.jquery.Deferred;
 	/**
-		 Return a Deferred's Promise object. 
+		Return a Deferred's Promise object.
 	**/
 	public function promise(?target:Dynamic):js.jquery.Promise;
 	/**
-		 Reject a Deferred object and call any failCallbacks with the given <code>args</code>. 
+		Reject a Deferred object and call any failCallbacks with the given <code>args</code>.
 	**/
 	public function reject(?args:Dynamic):js.jquery.Deferred;
 	/**
-		 Reject a Deferred object and call any failCallbacks with the given <code>context</code> and <code>args</code>. 
+		Reject a Deferred object and call any failCallbacks with the given <code>context</code> and <code>args</code>.
 	**/
 	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;
 	/**
-		 Resolve a Deferred object and call any doneCallbacks with the given <code>context</code> and <code>args</code>. 
+		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. 
+		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. 
+		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;
 }

+ 4 - 4
std/js/jquery/Event.hx

@@ -2,7 +2,7 @@
 package js.jquery;
 @:native("$.Event") extern class Event extends js.html.Event {
 	/**
-		An optional object of data passed to an event method when the current executing handler is bound.  
+		An optional object of data passed to an event method when the current executing handler is bound.
 	**/
 	public var data : Dynamic;
 	/**
@@ -10,15 +10,15 @@ package js.jquery;
 	**/
 	public var delegateTarget : js.html.Element;
 	/**
-		Returns whether <a href="/event.preventDefault/">event.preventDefault()</a> was ever called on this event object. 
+		Returns whether <a href="/event.preventDefault/">event.preventDefault()</a> was ever called on this event object.
 	**/
 	public function isDefaultPrevented():Bool;
 	/**
-		  Returns whether event.stopImmediatePropagation() was ever called on this event object. 
+		Returns whether event.stopImmediatePropagation() was ever called on this event object.
 	**/
 	public function isImmediatePropagationStopped():Bool;
 	/**
-		  Returns whether <a href="/event.stopPropagation/">event.stopPropagation()</a> was ever called on this event object. 
+		Returns whether <a href="/event.stopPropagation/">event.stopPropagation()</a> was ever called on this event object.
 	**/
 	public function isPropagationStopped():Bool;
 	/**

+ 3 - 6
std/js/jquery/JQuery.hx

@@ -6,7 +6,7 @@ package js.jquery;
 	**/
 	static public function Callbacks(flags:String):js.jquery.Callbacks;
 	/**
-		 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.
 	**/
 	static public function Deferred(?beforeStart:js.jquery.Deferred -> Void):js.jquery.Deferred;
 	/**
@@ -591,7 +591,7 @@ package js.jquery;
 	/**
 		The number of elements in the jQuery object.
 	**/
-	public var length(default,null) : Int;
+	public var length(default, null) : Int;
 	/**
 		Bind an event handler to the "load" JavaScript event.
 		OR
@@ -768,7 +768,7 @@ package js.jquery;
 	@:overload(function(?element:haxe.extern.EitherType<js.html.Element, js.jquery.JQuery>, ?filter:String):js.jquery.JQuery { })
 	public function prevUntil(?selector:String, ?filter:String):js.jquery.JQuery;
 	/**
-		 Return a Promise object to observe when all actions of a certain type bound to the collection, queued or not, have finished.
+		Return a Promise object to observe when all actions of a certain type bound to the collection, queued or not, have finished.
 	**/
 	public function promise(?type:String, ?target:Dynamic):js.jquery.Promise;
 	/**
@@ -1016,14 +1016,11 @@ package js.jquery;
 	**/
 	@:runtime
 	inline public function iterator():js.jquery.JqIterator return new js.jquery.JqIterator(js.Lib.nativeThis);
-
-
 	/**
 		Haxe iterator.
 	**/
 	@:runtime
 	inline public function elements():js.jquery.JqEltsIterator return new js.jquery.JqEltsIterator(js.Lib.nativeThis);
-
 	static function __init__():Void {
 		js.jquery.Helper.embed();
 	}

+ 7 - 7
std/js/jquery/JqXHR.hx

@@ -2,32 +2,32 @@
 package js.jquery;
 @:native("$.JqXHR") extern class JqXHR extends js.html.XMLHttpRequest {
 	/**
-		 Add handlers to be called when the Deferred object is either resolved or rejected. 
+		Add handlers to be called when the Deferred object is either resolved or 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;
 	/**
-		 Add handlers to be called when the Deferred object is resolved. 
+		Add handlers to be called when the Deferred object is resolved.
 	**/
 	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 rejected. 
+		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.  
+		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;
 	/**
-		 Add handlers to be called when the Deferred object generates progress notifications.
+		Add handlers to be called when the Deferred object generates progress notifications.
 	**/
 	public function progress(progressCallbacks:haxe.extern.EitherType<haxe.Constraints.Function, haxe.extern.EitherType<Array<Dynamic>, Array<haxe.Constraints.Function>>>, ?progressCallbacks:haxe.extern.EitherType<haxe.Constraints.Function, haxe.extern.EitherType<Array<Dynamic>, Array<haxe.Constraints.Function>>>):js.jquery.Deferred;
 	/**
-		Determine the current state of a Deferred object. 
+		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. 
+		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;
 }

+ 7 - 7
std/js/jquery/Promise.hx

@@ -2,32 +2,32 @@
 package js.jquery;
 @:native("$.Promise") typedef Promise = {
 	/**
-		 Add handlers to be called when the Deferred object is either resolved or rejected. 
+		Add handlers to be called when the Deferred object is either resolved or 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;
 	/**
-		 Add handlers to be called when the Deferred object is resolved. 
+		Add handlers to be called when the Deferred object is resolved.
 	**/
 	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 rejected. 
+		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.  
+		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;
 	/**
-		 Add handlers to be called when the Deferred object generates progress notifications.
+		Add handlers to be called when the Deferred object generates progress notifications.
 	**/
 	public function progress(progressCallbacks:haxe.extern.EitherType<haxe.Constraints.Function, haxe.extern.EitherType<Array<Dynamic>, Array<haxe.Constraints.Function>>>, ?progressCallbacks:haxe.extern.EitherType<haxe.Constraints.Function, haxe.extern.EitherType<Array<Dynamic>, Array<haxe.Constraints.Function>>>):js.jquery.Deferred;
 	/**
-		Determine the current state of a Deferred object. 
+		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. 
+		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;
 }