|
@@ -65,10 +65,11 @@ typedef JqEvent = {
|
|
|
extern class JQueryHelper {
|
|
|
@:overload(function(j:JQuery):JQuery{})
|
|
|
@:overload(function(j:DOMWindow):JQuery{})
|
|
|
- @:overload(function(j:Element):JQuery{})
|
|
|
- public static inline function J( html : String ) : JQuery {
|
|
|
- return new JQuery(html);
|
|
|
- }
|
|
|
+ @:overload(function(j:Element):JQuery { } )
|
|
|
+
|
|
|
+ public static inline function J( html : haxe.EitherType<String,haxe.EitherType<JQuery,haxe.EitherType<DOMWindow,Element>>> ) : JQuery {
|
|
|
+ return new JQuery(cast html);
|
|
|
+ }
|
|
|
|
|
|
public static var JTHIS(get, null) : JQuery;
|
|
|
|