- Ext.getBody().on(<em>'click'</em>, <b>function</b>(e){
- <b>if</b>(e.within(<em>'some-el'</em>)){
- alert(<em>'Clicked on a child of some-el!'</em>);
- }
- });
-
- <i>// Handle click directly on an element, ignoring clicks on child nodes</i>
- Ext.getBody().on(<em>'click'</em>, <b>function</b>(e,t){
- <b>if</b>((t.id == <em>'some-el'</em>) && !e.within(t, true)){
- alert(<em>'Clicked directly on some-el!'</em>);
- }
- });</code></pre><div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>el</code> : Mixed<div class="sub-desc">The id, DOM element or Ext.Element to check</div></li><li><code>related</code> : Boolean<div class="sub-desc">(optional) true to test if the related target is within el instead of the target</div></li><li><code>allowEl</code> : Boolean<div class="sub-desc">{optional} true to also check if the passed element is the target or related target</div></li></ul><strong>Returns:</strong><ul><li><code>Boolean</code><div class="sub-desc"></div></li></ul></div></div></div></td><td class="msource">EventObject</td></tr></tbody></table><a id="Ext.EventObject-events"></a><h2>Public Events</h2><div class="no-members">This class has no public events.</div></div>
\ No newline at end of file
+ Ext.getBody().on(<em>'click'</em>, <b>function</b>(e){
+ <b>if</b>(e.within(<em>'some-el'</em>)){
+ alert(<em>'Clicked on a child of some-el!'</em>);
+ }
+ });
+
+ <i>// Handle click directly on an element, ignoring clicks on child nodes</i>
+ Ext.getBody().on(<em>'click'</em>, <b>function</b>(e,t){
+ <b>if</b>((t.id == <em>'some-el'</em>) && !e.within(t, true)){
+ alert(<em>'Clicked directly on some-el!'</em>);
+ }
+ });</code></pre><div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>el</code> : Mixed<div class="sub-desc">The id, DOM element or Ext.Element to check</div></li><li><code>related</code> : Boolean<div class="sub-desc">(optional) true to test if the related target is within el instead of the target</div></li><li><code>allowEl</code> : Boolean<div class="sub-desc">{optional} true to also check if the passed element is the target or related target</div></li></ul><strong>Returns:</strong><ul><li><code>Boolean</code><div class="sub-desc"></div></li></ul></div></div></div></td><td class="msource">EventObject</td></tr></tbody></table><a id="Ext.EventObject-events"></a><h2>Public Events</h2><div class="no-members">This class has no public events.</div></div>
\ No newline at end of file