@@ -381,6 +381,8 @@ let rec gen_call ctx e el in_value =
spr ctx "(";
concat ctx "," (gen_value ctx) params;
spr ctx ")";
+ | TLocal { v_name = "__js__" }, [{ eexpr = TConst (TString "this") }] ->
+ spr ctx (this ctx)
| TLocal { v_name = "__js__" }, [{ eexpr = TConst (TString code) }] ->
spr ctx (String.concat "\n" (ExtString.String.nsplit code "\r\n"))
| TLocal { v_name = "__instanceof__" }, [o;t] ->
@@ -390,7 +390,7 @@ extern class JQuery implements ArrayAccess<Element> {
//static function is*, makeArray, map, merge, noop, now, param, proxy, sub, trim, type, unique
private static inline function get_cur() : JQuery {
- return untyped __js__("$(this)");
+ return untyped $(__js__("this"));
}
private static function __init__() : Void untyped {