Upgrade to ExtJS 4.0.2 - Released 06/09/2011
[extjs.git] / src / util / ComponentDragger.js
index d70be9b..246f0b3 100644 (file)
@@ -1,3 +1,17 @@
+/*
+
+This file is part of Ext JS 4
+
+Copyright (c) 2011 Sencha Inc
+
+Contact:  http://www.sencha.com/contact
+
+GNU General Public License Usage
+This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file.  Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.
+
+If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact.
+
+*/
 /**
  * @class Ext.util.ComponentDragger
  * @extends Ext.dd.DragTracker
@@ -6,9 +20,6 @@
  * {@link Ext.dd.DragTracker} class.</p>
  * <p>A {@link #} delegate may be provided which may be either the element to use as the mousedown target
  * or a {@link Ext.DomQuery} selector to activate multiple mousedown targets.</p>
- * @constructor Create a new ComponentTracker
- * @param {object} comp The Component to provide dragging for.
- * @param {object} config The config object
  */
 Ext.define('Ext.util.ComponentDragger', {
 
@@ -26,13 +37,18 @@ Ext.define('Ext.util.ComponentDragger', {
 
     /**
      * @cfg {Boolean} constrainDelegate
-     * Specify as <code>true</code> to constrain the drag handles within the {@link constrainTo} region.
+     * Specify as <code>true</code> to constrain the drag handles within the {@link #constrainTo} region.
      */
 
     extend: 'Ext.dd.DragTracker',
 
     autoStart: 500,
 
+    /**
+     * Creates new ComponentDragger.
+     * @param {object} comp The Component to provide dragging for.
+     * @param {object} config (optional) Config object
+     */
     constructor: function(comp, config) {
         this.comp = comp;
         this.initialConstrainTo = config.constrainTo;
@@ -108,4 +124,4 @@ Ext.define('Ext.util.ComponentDragger', {
             this.comp.unghost();
         }
     }
-});
\ No newline at end of file
+});