Explorar o código

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

Nicolas Cannasse %!s(int64=8) %!d(string=hai) anos
pai
achega
e3a022dd4b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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'));
 }