- Function<div class="mdesc"><div class="short">Creates a delegate (callback) that sets the scope to obj. \r
-Call directly on any function. Example: this.myFunction.cr...</div><div class="long">Creates a delegate (callback) that sets the scope to obj.\r
-Call directly on any function. Example: <code>this.myFunction.createDelegate(this, [arg1, arg2])</code>\r
-Will create a function that is automatically scoped to obj so that the <tt>this</tt> variable inside the\r
-callback points to obj. Example usage:\r
-<pre><code><b>var</b> sayHi = <b>function</b>(name){\r
- <i>// Note this use of <em>"this.text"</em> here. This <b>function</b> expects to\r</i>
- <i>// execute within a scope that contains a text property. In this\r</i>
- <i>// example, the <em>"this"</em> variable is pointing to the btn object that\r</i>
- <i>// was passed <b>in</b> createDelegate below.\r</i>
- alert(<em>'Hi, '</em> + name + <em>'. You clicked the <em>"'</em> + this.text + <em>'"</em> button.'</em>);\r
-}\r
-\r
-<b>var</b> btn = <b>new</b> Ext.Button({\r
- text: <em>'Say Hi'</em>,\r
- renderTo: Ext.getBody()\r
-});\r
-\r
-<i>// This callback will execute <b>in</b> the scope of the\r</i>
-<i>// button instance. Clicking the button alerts\r</i>
-<i>// <em>"Hi, Fred. You clicked the "</em>Say Hi<em>" button."</em>\r</i>
-btn.on(<em>'click'</em>, sayHi.createDelegate(btn, [<em>'Fred'</em>]));</code></pre><div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (<code><b>this</b></code> reference) in which the function is executed.\r
-<b>If omitted, defaults to the browser window.</b></div></li><li><code>args</code> : Array<div class="sub-desc">(optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller)</div></li><li><code>appendArgs</code> : Boolean/Number<div class="sub-desc">(optional) if True args are appended to call args instead of overriding,\r
+ Function<div class="mdesc"><div class="short">Creates a delegate (callback) that sets the scope to obj.\r
+Call directly on any function. Example: this.myFunction.cre...</div><div class="long">Creates a delegate (callback) that sets the scope to obj.
+Call directly on any function. Example: <code>this.myFunction.createDelegate(this, [arg1, arg2])</code>
+Will create a function that is automatically scoped to obj so that the <tt>this</tt> variable inside the
+callback points to obj. Example usage:
+<pre><code><b>var</b> sayHi = <b>function</b>(name){
+ <i>// Note this use of <em>"this.text"</em> here. This <b>function</b> expects to</i>
+ <i>// execute within a scope that contains a text property. In this</i>
+ <i>// example, the <em>"this"</em> variable is pointing to the btn object that</i>
+ <i>// was passed <b>in</b> createDelegate below.</i>
+ alert(<em>'Hi, '</em> + name + <em>'. You clicked the <em>"'</em> + this.text + <em>'"</em> button.'</em>);
+}
+
+<b>var</b> btn = <b>new</b> Ext.Button({
+ text: <em>'Say Hi'</em>,
+ renderTo: Ext.getBody()
+});
+
+<i>// This callback will execute <b>in</b> the scope of the</i>
+<i>// button instance. Clicking the button alerts</i>
+<i>// <em>"Hi, Fred. You clicked the "</em>Say Hi<em>" button."</em></i>
+btn.on(<em>'click'</em>, sayHi.createDelegate(btn, [<em>'Fred'</em>]));</code></pre><div class="mdetail-params"><strong>Parameters:</strong><ul><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (<code><b>this</b></code> reference) in which the function is executed.
+<b>If omitted, defaults to the browser window.</b></div></li><li><code>args</code> : Array<div class="sub-desc">(optional) Overrides arguments for the call. (Defaults to the arguments passed by the caller)</div></li><li><code>appendArgs</code> : Boolean/Number<div class="sub-desc">(optional) if True args are appended to call args instead of overriding,