Browse Source

'each' overload

Nicolas Cannasse 13 years ago
parent
commit
03718d2ecb
1 changed files with 2 additions and 0 deletions
  1. 2 0
      std/js/JQuery.hx

+ 2 - 0
std/js/JQuery.hx

@@ -108,6 +108,8 @@ extern class JQuery implements ArrayAccess<Dom.HtmlDom> {
 	function clone( ?withDataAndEvents : Bool ) : JQuery;
 	function closest( selector : String, ?context : JQuery ) : JQuery;
 	function contents() : JQuery;
+
+	@:overload(function( f : Int -> js.Dom.HtmlDom -> Void ):js.JQuery{})
 	function each( f : Void -> Void ) : JQuery;
 	function end() : JQuery;
 	function eq( index : Int ) : JQuery;