Browse Source

fixed JQuery.iterator/elements (don't use nativeThis)

Nicolas Cannasse 9 years ago
parent
commit
d36676409f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      std/js/jquery/JQuery.hx

+ 2 - 2
std/js/jquery/JQuery.hx

@@ -1021,12 +1021,12 @@ package js.jquery;
 		Haxe iterator.
 		Haxe iterator.
 	**/
 	**/
 	@:runtime
 	@:runtime
-	inline public function iterator():js.jquery.JqIterator return new js.jquery.JqIterator(js.Lib.nativeThis);
+	inline public function iterator():js.jquery.JqIterator return new js.jquery.JqIterator(this);
 	/**
 	/**
 		Haxe iterator.
 		Haxe iterator.
 	**/
 	**/
 	@:runtime
 	@:runtime
-	inline public function elements():js.jquery.JqEltsIterator return new js.jquery.JqEltsIterator(js.Lib.nativeThis);
+	inline public function elements():js.jquery.JqEltsIterator return new js.jquery.JqEltsIterator(this);
 	static function __init__():Void {
 	static function __init__():Void {
 		js.jquery.Helper.embed();
 		js.jquery.Helper.embed();
 	}
 	}