- Function<div class="mdesc"><div class="short">Creates a callback that passes arguments[0], arguments[1], arguments[2], ...
-Call directly on any function. Example:...</div><div class="long">Creates a callback that passes arguments[0], arguments[1], arguments[2], ...\r
-Call directly on any function. Example: <code>myFunction.createCallback(arg1, arg2)</code>\r
-Will create a function that is bound to those 2 args. <b>If a specific scope is required in the\r
-callback, use <a href="output/Function.html#Function-createDelegate" ext:member="createDelegate" ext:cls="Function">createDelegate</a> instead.</b> The function returned by createCallback always\r
-executes in the window scope.\r
-<p>This method is required when you want to pass arguments to a callback function. If no arguments\r
-are needed, you can simply pass a reference to the function as a callback (e.g., callback: myFn).\r
-However, if you tried to pass a function with arguments (e.g., callback: myFn(arg1, arg2)) the function\r
-would simply execute immediately when the code is parsed. Example usage:\r
-<pre><code><b>var</b> sayHi = <b>function</b>(name){\r
- alert(<em>'Hi, '</em> + name);\r
-}\r
-\r
-<i>// clicking the button alerts <em>"Hi, Fred"</em>\r</i>
-<b>new</b> Ext.Button({\r
- text: <em>'Say Hi'</em>,\r
- renderTo: Ext.getBody(),\r
- handler: sayHi.createCallback(<em>'Fred'</em>)\r
-});</code></pre><div class="mdetail-params"><strong>Parameters:</strong><ul><li>None.</li></ul><strong>Returns:</strong><ul><li><code>Function</code><div class="sub-desc">The new function</div></li></ul></div></div></div></td><td class="msource">Function</td></tr><tr class="method-row expandable "><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Function-createDelegate"></a><b><a href="source/Ext.html#method-Function-createDelegate">createDelegate</a></b>( <span title="Optional" class="optional">[<code>Object obj</code>]</span>, <span title="Optional" class="optional">[<code>Array args</code>]</span>, <span title="Optional" class="optional">[<code>Boolean/Number appendArgs</code>]</span> )
+ Function<div class="mdesc"><div class="short">Creates a callback that passes arguments[0], arguments[1], arguments[2], ...
+Call directly on any function. Example: ...</div><div class="long">Creates a callback that passes arguments[0], arguments[1], arguments[2], ...
+Call directly on any function. Example: <code>myFunction.createCallback(arg1, arg2)</code>
+Will create a function that is bound to those 2 args. <b>If a specific scope is required in the
+callback, use <a href="output/Function.html#Function-createDelegate" ext:member="createDelegate" ext:cls="Function">createDelegate</a> instead.</b> The function returned by createCallback always
+executes in the window scope.
+<p>This method is required when you want to pass arguments to a callback function. If no arguments
+are needed, you can simply pass a reference to the function as a callback (e.g., callback: myFn).
+However, if you tried to pass a function with arguments (e.g., callback: myFn(arg1, arg2)) the function
+would simply execute immediately when the code is parsed. Example usage:
+<pre><code><b>var</b> sayHi = <b>function</b>(name){
+ alert(<em>'Hi, '</em> + name);
+}
+
+<i>// clicking the button alerts <em>"Hi, Fred"</em></i>
+<b>new</b> Ext.Button({
+ text: <em>'Say Hi'</em>,
+ renderTo: Ext.getBody(),
+ handler: sayHi.createCallback(<em>'Fred'</em>)
+});</code></pre><div class="mdetail-params"><strong>Parameters:</strong><ul><li>None.</li></ul><strong>Returns:</strong><ul><li><code>Function</code><div class="sub-desc">The new function</div></li></ul></div></div></div></td><td class="msource">Function</td></tr><tr class="method-row expandable "><td class="micon"><a href="#expand" class="exi"> </a></td><td class="sig"><a id="Function-createDelegate"></a><b><a href="source/Ext.html#method-Function-createDelegate">createDelegate</a></b>( <span title="Optional" class="optional">[<code>Object scope</code>]</span>, <span title="Optional" class="optional">[<code>Array args</code>]</span>, <span title="Optional" class="optional">[<code>Boolean/Number appendArgs</code>]</span> )