Ver código fonte

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

Nicolas Cannasse 8 anos atrás
pai
commit
e3a022dd4b
1 arquivos alterados com 2 adições e 0 exclusões
  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'));
 }