X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..3789b528d8dd8aad4558e38e22d775bcab1cbd36:/docs/source/Tool.html diff --git a/docs/source/Tool.html b/docs/source/Tool.html index 018be2d0..4d91dd93 100644 --- a/docs/source/Tool.html +++ b/docs/source/Tool.html @@ -1,4 +1,21 @@ -Sencha Documentation Project
/**
+
+
+
+  
+  The source code
+  
+  
+  
+  
+
+
+  
/**
  * @class Ext.panel.Tool
  * @extends Ext.Component
 
@@ -51,7 +68,7 @@ Ext.define('Ext.panel.Tool', {
     ariaRole: 'button',
     renderTpl: ['<img src="{blank}" class="{baseCls}-{type}" role="presentation"/>'],
     
-    /**
+    /**
      * @cfg {Function} handler
      * A function to execute when the tool is clicked.
      * Arguments passed are:
@@ -63,12 +80,12 @@ Ext.define('Ext.panel.Tool', {
      * </ul>
      */
     
-    /**
+    /**
      * @cfg {Object} scope
      * The scope to execute the {@link #handler} function. Defaults to the tool.
      */
     
-    /**
+    /**
      * @cfg {String} type
      * The type of tool to render. The following types are available:
      * <ul>
@@ -100,12 +117,12 @@ Ext.define('Ext.panel.Tool', {
      * </ul>
      */
     
-    /**
+    /**
      * @cfg {String/Object} tooltip 
      * The tooltip for the tool - can be a string to be used as innerHTML (html tags are accepted) or QuickTips config object
      */
     
-    /**
+    /**
      * @cfg {Boolean} stopEvent
      * Defaults to true. Specify as false to allow click event to propagate.
      */
@@ -114,7 +131,7 @@ Ext.define('Ext.panel.Tool', {
     initComponent: function() {
         var me = this;
         me.addEvents(
-            /**
+            /**
              * @event click
              * Fires when the tool is clicked
              * @param {Ext.panel.Tool} this
@@ -152,7 +169,7 @@ Ext.define('Ext.panel.Tool', {
             'up'
         ];
         
-        if (me.id && Ext.Array.indexOf(types, me.id) > -1) {
+        if (me.id && Ext.Array.indexOf(types, me.id) > -1 && Ext.global.console) {
             Ext.global.console.warn('When specifying a tool you should use the type option, the id can conflict now that tool is a Component');
         }
         //</debug>
@@ -192,7 +209,7 @@ Ext.define('Ext.panel.Tool', {
         });
     },
 
-    /**
+    /**
      * Set the type of the tool. Allows the icon to be changed.
      * @param {String} type The new type. See the {@link #type} config.
      * @return {Ext.panel.Tool} this
@@ -207,7 +224,7 @@ Ext.define('Ext.panel.Tool', {
         return me;
     },
 
-    /**
+    /**
      * Binds this tool to a component.
      * @private
      * @param {Ext.Component} component The component
@@ -216,7 +233,7 @@ Ext.define('Ext.panel.Tool', {
         this.owner = component;
     },
 
-    /**
+    /**
      * Fired when the tool element is clicked
      * @private
      * @param {Ext.EventObject} e
@@ -252,7 +269,7 @@ Ext.define('Ext.panel.Tool', {
         this.callParent();
     },
 
-    /**
+    /**
      * Called then the user pressing their mouse button down on a tool
      * Adds the press class ({@link #toolPressedCls})
      * @private
@@ -265,7 +282,7 @@ Ext.define('Ext.panel.Tool', {
         this.el.addCls(this.toolPressedCls);
     },
 
-    /**
+    /**
      * Called when the user rolls over a tool
      * Adds the over class ({@link #toolOverCls})
      * @private
@@ -277,7 +294,7 @@ Ext.define('Ext.panel.Tool', {
         this.el.addCls(this.toolOverCls);
     },
 
-    /**
+    /**
      * Called when the user rolls out from a tool.
      * Removes the over class ({@link #toolOverCls})
      * @private
@@ -285,4 +302,6 @@ Ext.define('Ext.panel.Tool', {
     onMouseOut: function() {
         this.el.removeCls(this.toolOverCls);
     }
-});
\ No newline at end of file +});
+ +