Browse Source

[jQuery] regenerate extern with added Event.getThis()

https://github.com/andyli/jQueryExternForHaxe/commit/4a6e3d5a4b5473660ee630965651d5ac75262b74
Andy Li 8 years ago
parent
commit
03eb7a3d41
1 changed files with 5 additions and 2 deletions
  1. 5 2
      std/js/jquery/Event.hx

+ 5 - 2
std/js/jquery/Event.hx

@@ -143,6 +143,9 @@ package js.jquery;
 			
 	**/
 	public var view : js.html.Window;
-	
-	public inline function getThis() : JQuery return new JQuery(untyped __js__('this'));
+	/**
+		A convenient method of getting `$(this)`, which is typically the same as `$(evt.currentTarget)`.
+		For detail, refer to https://api.jquery.com/event.currenttarget/.
+	**/
+	inline public function getThis():js.jquery.JQuery return new js.jquery.JQuery(js.Lib.nativeThis);
 }