Parcourir la source

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

Nicolas Cannasse il y a 8 ans
Parent
commit
e3a022dd4b
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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'));
 }