Przeglądaj źródła

added getThis() in jquery event, allow to easily get real this in a callback

Nicolas Cannasse 8 lat temu
rodzic
commit
e3a022dd4b
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      std/js/jquery/Event.hx

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

@@ -143,4 +143,6 @@ package js.jquery;
 			
 	**/
 	public var view : js.html.Window;
+	
+	public inline function getThis() : JQuery return new JQuery(untyped __js__('this'));
 }