Browse Source

fix js.JQuery

Dan Korostelev 11 years ago
parent
commit
f16cb786a5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/js/JQuery.hx

+ 1 - 1
std/js/JQuery.hx

@@ -399,7 +399,7 @@ extern class JQuery implements ArrayAccess<Element> {
 			haxe.macro.Compiler.includeFile("js/jquery-latest.min.js");
 		#end
 		var q : Dynamic = (untyped js.Browser.window).jQuery;
-		var js = untyped __js__("js || {}");
+		untyped __js__("var js = js || {}");
 		js.JQuery = q;
 		__feature__('js.JQuery.iterator',
 			q.fn.iterator = function() return { pos : 0, j : __this__, hasNext : function() return __this__.pos < __this__.j.length, next : function() return $(__this__.j[__this__.pos++]) }