Browse Source

jQuery is no longer new

Andy Li 10 years ago
parent
commit
67f02dd675
1 changed files with 1 additions and 0 deletions
  1. 1 0
      std/js/JQuery.hx

+ 1 - 0
std/js/JQuery.hx

@@ -85,6 +85,7 @@ extern class JQuery implements ArrayAccess<Element> {
 	var context(default,null) : Element;
 	var length(default, null) : Int;
 
+	@:selfCall
 	@:overload(function(j:JQuery):Void{})
 	@:overload(function(j:Window):Void{})
 	@:overload(function(j:Element):Void{})