浏览代码

jQuery is no longer new

Andy Li 10 年之前
父节点
当前提交
67f02dd675
共有 1 个文件被更改,包括 1 次插入0 次删除
  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{})