فهرست منبع

add() overloads + added mousemove

Nicolas Cannasse 14 سال پیش
والد
کامیت
35aa180b27
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      std/js/JQuery.hx

+ 5 - 1
std/js/JQuery.hx

@@ -88,7 +88,10 @@ extern class JQuery implements ArrayAccess<Dom.HtmlDom> {
 	function position() : { left : Int, top : Int };
 	function position() : { left : Int, top : Int };
 
 
 	// current group manipulation
 	// current group manipulation
-	function add( selectorOrHTML : String, ?context : JQuery ) : JQuery;
+	@:overload(function(value:js.JQuery):js.JQuery{})
+	@:overload(function(value:js.Dom.HtmlDom):js.JQuery{})
+	@:overload(function(value:Array<js.Dom.HtmlDom>):js.JQuery{})
+	function add( selector : String, ?context : JQuery ) : JQuery;
 	function andSelf() : JQuery;
 	function andSelf() : JQuery;
 	function children( ?selector : String ) : JQuery;
 	function children( ?selector : String ) : JQuery;
 	function clone( ?withDataAndEvents : Bool ) : JQuery;
 	function clone( ?withDataAndEvents : Bool ) : JQuery;
@@ -209,6 +212,7 @@ extern class JQuery implements ArrayAccess<Dom.HtmlDom> {
 	function mouseleave( ?callb : JqEvent -> Void ) : JQuery;
 	function mouseleave( ?callb : JqEvent -> Void ) : JQuery;
 	function mouseout( ?callb : JqEvent -> Void ) : JQuery;
 	function mouseout( ?callb : JqEvent -> Void ) : JQuery;
 	function mouseover( ?callb : JqEvent -> Void ) : JQuery;
 	function mouseover( ?callb : JqEvent -> Void ) : JQuery;
+	function mousemove( ?callb : JqEvent -> Void ) : JQuery;
 	function mouseup( ?callb : JqEvent -> Void ) : JQuery;
 	function mouseup( ?callb : JqEvent -> Void ) : JQuery;
 	function load( ?callb : JqEvent -> Void ) : JQuery;
 	function load( ?callb : JqEvent -> Void ) : JQuery;
 	function ready( callb : JqEvent -> Void ) : JQuery;
 	function ready( callb : JqEvent -> Void ) : JQuery;