2
0
Эх сурвалжийг харах

initial support of jQuery 2.2/1.12
The info on api.jquery.com hasn't been updated yet. That's why it is just initial support.

Andy Li 9 жил өмнө
parent
commit
9056563cf7

+ 10 - 0
std/js/jquery/JQuery.hx

@@ -202,6 +202,12 @@ package js.jquery;
 		Remove a previously-stored piece of data.
 		Remove a previously-stored piece of data.
 	**/
 	**/
 	static public function removeData(element:js.html.Element, ?name:String):js.jquery.JQuery;
 	static public function removeData(element:js.html.Element, ?name:String):js.jquery.JQuery;
+	/**
+		Creates an object containing a set of properties ready to be used in the definition of custom animations.
+	**/
+	@:overload(function(?duration:haxe.extern.EitherType<Float, String>, ?settings:Dynamic):Dynamic { })
+	@:overload(function(?duration:haxe.extern.EitherType<Float, String>, ?easing:String, ?complete:haxe.Constraints.Function):Dynamic { })
+	static public function speed(settings:Dynamic):Dynamic;
 	/**
 	/**
 		A collection of properties that represent the presence of different browser features or bugs. Intended for jQuery's internal use; specific properties may be removed when they are no longer needed internally to improve page startup performance. For your own project's feature-detection needs, we strongly recommend the use of an external library such as <a href="http://modernizr.com">Modernizr</a> instead of dependency on properties in <code>jQuery.support</code>.
 		A collection of properties that represent the presence of different browser features or bugs. Intended for jQuery's internal use; specific properties may be removed when they are no longer needed internally to improve page startup performance. For your own project's feature-detection needs, we strongly recommend the use of an external library such as <a href="http://modernizr.com">Modernizr</a> instead of dependency on properties in <code>jQuery.support</code>.
 	**/
 	**/
@@ -218,6 +224,10 @@ package js.jquery;
 		Sorts an array of DOM elements, in place, with the duplicates removed. Note that this only works on arrays of DOM elements, not strings or numbers.
 		Sorts an array of DOM elements, in place, with the duplicates removed. Note that this only works on arrays of DOM elements, not strings or numbers.
 	**/
 	**/
 	static public function unique(array:Array<js.html.Element>):Array<js.html.Element>;
 	static public function unique(array:Array<js.html.Element>):Array<js.html.Element>;
+	/**
+		Sorts an array of DOM elements, in place, with the duplicates removed. Note that this only works on arrays of DOM elements, not strings or numbers.
+	**/
+	static public function uniqueSort(array:Array<js.html.Element>):Array<js.html.Element>;
 	/**
 	/**
 		Provides a way to execute callback functions based on one or more objects, usually <a href="/category/deferred-object/">Deferred</a> objects that represent asynchronous events.
 		Provides a way to execute callback functions based on one or more objects, usually <a href="/category/deferred-object/">Deferred</a> objects that represent asynchronous events.
 	**/
 	**/