Browse Source

easing overloads

Nicolas Cannasse 13 years ago
parent
commit
3704010aa0
1 changed files with 23 additions and 0 deletions
  1. 23 0
      std/js/JQuery.hx

+ 23 - 0
std/js/JQuery.hx

@@ -194,18 +194,41 @@ extern class JQuery implements ArrayAccess<Dom.HtmlDom> {
 	function wrapInner( html : String ) : JQuery;
 	function wrapInner( html : String ) : JQuery;
 
 
 	// animation
 	// animation
+	@:overload(function(properties:{},?duration:Int,?easing:String,?call:Void->Void) : js.JQuery{})
 	function animate( properties : { }, ?duration : Int, ?callb : Void -> Void ) : JQuery;
 	function animate( properties : { }, ?duration : Int, ?callb : Void -> Void ) : JQuery;
+
 	function delay( duration : Int, ?queueName : String ) : JQuery;
 	function delay( duration : Int, ?queueName : String ) : JQuery;
+
+	@:overload(function(?duration:Int,?easing:String,?call:Void->Void) : js.JQuery{})
 	function hide( ?duration : Int, ?call : Void -> Void ) : JQuery;
 	function hide( ?duration : Int, ?call : Void -> Void ) : JQuery;
+
+	@:overload(function(?duration:Int,?easing:String,?call:Void->Void) : js.JQuery{})
 	function fadeIn( ?duration : Int, ?call : Void -> Void ) : JQuery;
 	function fadeIn( ?duration : Int, ?call : Void -> Void ) : JQuery;
+
+	@:overload(function(?duration:Int,?easing:String,?call:Void->Void) : js.JQuery{})
 	function fadeOut( ?duration : Int, ?call : Void -> Void ) : JQuery;
 	function fadeOut( ?duration : Int, ?call : Void -> Void ) : JQuery;
+
+	@:overload(function(duration:Int,opacity:Float,?easing:String,?call:Void->Void) : js.JQuery{})
 	function fadeTo( duration : Int, opacity : Float, ?call : Void -> Void ) : JQuery;
 	function fadeTo( duration : Int, opacity : Float, ?call : Void -> Void ) : JQuery;
+
+	@:overload(function(?duration:Int,?easing:String,?call:Void->Void) : js.JQuery{})
 	function fadeToggle( ?duration : Int, ?call : Void -> Void ) : JQuery;
 	function fadeToggle( ?duration : Int, ?call : Void -> Void ) : JQuery;
+
+	@:overload(function(?duration:Int,?easing:String,?call:Void->Void) : js.JQuery{})
 	function show( ?duration : Int, ?call : Void -> Void ) : JQuery;
 	function show( ?duration : Int, ?call : Void -> Void ) : JQuery;
+
+	@:overload(function(?duration:Int,?easing:String,?call:Void->Void) : js.JQuery{})
 	function slideDown( ?duration : Int, ?call : Void -> Void ) : JQuery;
 	function slideDown( ?duration : Int, ?call : Void -> Void ) : JQuery;
+
+	@:overload(function(?duration:Int,?easing:String,?call:Void->Void) : js.JQuery{})
 	function slideToggle( ?duration : Int, ?call : Void -> Void ) : JQuery;
 	function slideToggle( ?duration : Int, ?call : Void -> Void ) : JQuery;
+
+	@:overload(function(?duration:Int,?easing:String,?call:Void->Void) : js.JQuery{})
 	function slideUp( ?duration : Int, ?call : Void -> Void ) : JQuery;
 	function slideUp( ?duration : Int, ?call : Void -> Void ) : JQuery;
+
 	function stop( ?clearQueue : Bool, ?jumpToEnd : Bool ) : JQuery;
 	function stop( ?clearQueue : Bool, ?jumpToEnd : Bool ) : JQuery;
+
+	@:overload(function(?duration:Int,?easing:String,?call:Void->Void) : js.JQuery{})
 	function toggle( ?duration : Int, ?call : Void -> Void ) : JQuery;
 	function toggle( ?duration : Int, ?call : Void -> Void ) : JQuery;
 
 
 	// Events
 	// Events