git.ithinksw.org
/
extjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to ExtJS 3.1.1 - Released 02/08/2010
[extjs.git]
/
docs
/
source
/
Action1.html
diff --git
a/docs/source/Action1.html
b/docs/source/Action1.html
index
15f9e7a
..
a543be8
100644
(file)
--- a/
docs/source/Action1.html
+++ b/
docs/source/Action1.html
@@
-1,5
+1,6
@@
<html>
\r
<head>
\r
<html>
\r
<head>
\r
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
\r
<title>The source code</title>
\r
<link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
\r
<script type="text/javascript" src="../resources/prettify/prettify.js"></script>
\r
<title>The source code</title>
\r
<link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
\r
<script type="text/javascript" src="../resources/prettify/prettify.js"></script>
\r
@@
-58,13
+59,7
@@
aRef.setText('New text');
* @constructor
\r
* @param {Object} config The configuration options
\r
*/
\r
* @constructor
\r
* @param {Object} config The configuration options
\r
*/
\r
-Ext.Action = function(config){
\r
- this.initialConfig = config;
\r
- this.itemId = config.itemId = (config.itemId || config.id || Ext.id());
\r
- this.items = [];
\r
-}
\r
-
\r
-Ext.Action.prototype = {
\r
+Ext.Action = Ext.extend(Object, {
\r
<div id="cfg-Ext.Action-text"></div>/**
\r
* @cfg {String} text The text to set for all components using this action (defaults to '').
\r
*/
\r
<div id="cfg-Ext.Action-text"></div>/**
\r
* @cfg {String} text The text to set for all components using this action (defaults to '').
\r
*/
\r
@@
-97,9
+92,16
@@
Ext.Action.prototype = {
* See {@link Ext.Component}.{@link Ext.Component#itemId itemId}.
\r
*/
\r
<div id="cfg-Ext.Action-scope"></div>/**
\r
* See {@link Ext.Component}.{@link Ext.Component#itemId itemId}.
\r
*/
\r
<div id="cfg-Ext.Action-scope"></div>/**
\r
- * @cfg {Object} scope The scope in which the {@link #handler} function will execute.
\r
+ * @cfg {Object} scope The scope (<tt><b>this</b></tt> reference) in which the
\r
+ * <code>{@link #handler}</code> is executed. Defaults to this Button.
\r
*/
\r
\r
*/
\r
\r
+ constructor : function(config){
\r
+ this.initialConfig = config;
\r
+ this.itemId = config.itemId = (config.itemId || config.id || Ext.id());
\r
+ this.items = [];
\r
+ },
\r
+
\r
// private
\r
isAction : true,
\r
\r
// private
\r
isAction : true,
\r
\r
@@
-199,10
+201,10
@@
Ext.Action.prototype = {
},
\r
\r
<div id="method-Ext.Action-setHandler"></div>/**
\r
},
\r
\r
<div id="method-Ext.Action-setHandler"></div>/**
\r
- * Sets the function that will be called by each
c
omponent using this action when its primary event is triggered.
\r
+ * Sets the function that will be called by each
C
omponent using this action when its primary event is triggered.
\r
* @param {Function} fn The function that will be invoked by the action's components. The function
\r
* will be called with no arguments.
\r
* @param {Function} fn The function that will be invoked by the action's components. The function
\r
* will be called with no arguments.
\r
- * @param {Object} scope The scope
in which the function will execute
\r
+ * @param {Object} scope The scope
(<code>this</code> reference) in which the function is executed. Defaults to the Component firing the event.
\r
*/
\r
setHandler : function(fn, scope){
\r
this.initialConfig.handler = fn;
\r
*/
\r
setHandler : function(fn, scope){
\r
this.initialConfig.handler = fn;
\r
@@
-211,10
+213,10
@@
Ext.Action.prototype = {
},
\r
\r
<div id="method-Ext.Action-each"></div>/**
\r
},
\r
\r
<div id="method-Ext.Action-each"></div>/**
\r
- * Executes the specified function once for each
c
omponent currently tied to this action. The function passed
\r
+ * Executes the specified function once for each
C
omponent currently tied to this action. The function passed
\r
* in should accept a single argument that will be an object that supports the basic Action config/method interface.
\r
* @param {Function} fn The function to execute for each component
\r
* in should accept a single argument that will be an object that supports the basic Action config/method interface.
\r
* @param {Function} fn The function to execute for each component
\r
- * @param {Object} scope The scope
in which the function will execute
\r
+ * @param {Object} scope The scope
(<code>this</code> reference) in which the function is executed. Defaults to the Component.
\r
*/
\r
each : function(fn, scope){
\r
Ext.each(this.items, fn, scope);
\r
*/
\r
each : function(fn, scope){
\r
Ext.each(this.items, fn, scope);
\r
@@
-250,7
+252,7
@@
Ext.Action.prototype = {
execute : function(){
\r
this.initialConfig.handler.apply(this.initialConfig.scope || window, arguments);
\r
}
\r
execute : function(){
\r
this.initialConfig.handler.apply(this.initialConfig.scope || window, arguments);
\r
}
\r
-}
;
+}
);
\r
</pre>
\r
</body>
\r
</html>
\ No newline at end of file
</pre>
\r
</body>
\r
</html>
\ No newline at end of file