X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..92c2b89db26be16707f4a805d3303ab2531006e1:/docs/source/DragTracker.html diff --git a/docs/source/DragTracker.html b/docs/source/DragTracker.html index 86b18278..571fde50 100644 --- a/docs/source/DragTracker.html +++ b/docs/source/DragTracker.html @@ -1,5 +1,6 @@ + The source code @@ -9,55 +10,7 @@ * @class Ext.dd.DragTracker * @extends Ext.util.Observable */ -Ext.dd.DragTracker = function(config){ - Ext.apply(this, config); - this.addEvents( -
/** - * @event mousedown - * @param {Object} this - * @param {Object} e event object - */ - 'mousedown', -
/** - * @event mouseup - * @param {Object} this - * @param {Object} e event object - */ - 'mouseup', -
/** - * @event mousemove - * @param {Object} this - * @param {Object} e event object - */ - 'mousemove', -
/** - * @event dragstart - * @param {Object} this - * @param {Object} startXY the page coordinates of the event - */ - 'dragstart', -
/** - * @event dragend - * @param {Object} this - * @param {Object} e event object - */ - 'dragend', -
/** - * @event drag - * @param {Object} this - * @param {Object} e event object - */ - 'drag' - ); - - this.dragRegion = new Ext.lib.Region(0,0,0,0); - - if(this.el){ - this.initEl(this.el); - } -} - -Ext.extend(Ext.dd.DragTracker, Ext.util.Observable, { +Ext.dd.DragTracker = Ext.extend(Ext.util.Observable, {
/** * @cfg {Boolean} active * Defaults to false. @@ -74,6 +27,55 @@ Ext.extend(Ext.dd.DragTracker, Ext.util.Observable, { * Specify a Number for the number of milliseconds to defer trigger start. */ autoStart: false, + + constructor : function(config){ + Ext.apply(this, config); + this.addEvents( +
/** + * @event mousedown + * @param {Object} this + * @param {Object} e event object + */ + 'mousedown', +
/** + * @event mouseup + * @param {Object} this + * @param {Object} e event object + */ + 'mouseup', +
/** + * @event mousemove + * @param {Object} this + * @param {Object} e event object + */ + 'mousemove', +
/** + * @event dragstart + * @param {Object} this + * @param {Object} startXY the page coordinates of the event + */ + 'dragstart', +
/** + * @event dragend + * @param {Object} this + * @param {Object} e event object + */ + 'dragend', +
/** + * @event drag + * @param {Object} this + * @param {Object} e event object + */ + 'drag' + ); + + this.dragRegion = new Ext.lib.Region(0,0,0,0); + + if(this.el){ + this.initEl(this.el); + } + Ext.dd.DragTracker.superclass.constructor.call(this, config); + }, initEl: function(el){ this.el = Ext.get(el);