-<html>
-<head>
- <title>The source code</title>
- <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
- <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
-</head>
-<body onload="prettyPrint();">
- <pre class="prettyprint lang-js">/*!
- * Ext JS Library 3.0.3
- * Copyright(c) 2006-2009 Ext JS, LLC
- * licensing@extjs.com
- * http://www.extjs.com/license
- */
-<div id="cls-Ext.dd.DragTracker"></div>/**\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
+</head>\r
+<body onload="prettyPrint();">\r
+ <pre class="prettyprint lang-js"><div id="cls-Ext.dd.DragTracker"></div>/**\r
* @class Ext.dd.DragTracker\r
* @extends Ext.util.Observable\r
*/\r
-Ext.dd.DragTracker = function(config){\r
- Ext.apply(this, config);\r
- this.addEvents(\r
- <div id="event-Ext.dd.DragTracker-mousedown"></div>/**\r
- * @event mousedown\r
- * @param {Object} this\r
- * @param {Object} e event object\r
- */\r
- 'mousedown',\r
- <div id="event-Ext.dd.DragTracker-mouseup"></div>/**\r
- * @event mouseup\r
- * @param {Object} this\r
- * @param {Object} e event object\r
- */\r
- 'mouseup',\r
- <div id="event-Ext.dd.DragTracker-mousemove"></div>/**\r
- * @event mousemove\r
- * @param {Object} this\r
- * @param {Object} e event object\r
- */\r
- 'mousemove',\r
- <div id="event-Ext.dd.DragTracker-dragstart"></div>/**\r
- * @event dragstart\r
- * @param {Object} this\r
- * @param {Object} startXY the page coordinates of the event\r
- */\r
- 'dragstart',\r
- <div id="event-Ext.dd.DragTracker-dragend"></div>/**\r
- * @event dragend\r
- * @param {Object} this\r
- * @param {Object} e event object\r
- */\r
- 'dragend',\r
- <div id="event-Ext.dd.DragTracker-drag"></div>/**\r
- * @event drag\r
- * @param {Object} this\r
- * @param {Object} e event object\r
- */\r
- 'drag'\r
- );\r
-\r
- this.dragRegion = new Ext.lib.Region(0,0,0,0);\r
-\r
- if(this.el){\r
- this.initEl(this.el);\r
- }\r
-}\r
-\r
-Ext.extend(Ext.dd.DragTracker, Ext.util.Observable, {\r
+Ext.dd.DragTracker = Ext.extend(Ext.util.Observable, {\r
<div id="cfg-Ext.dd.DragTracker-active"></div>/**\r
* @cfg {Boolean} active\r
* Defaults to <tt>false</tt>.\r
* Specify a Number for the number of milliseconds to defer trigger start.\r
*/ \r
autoStart: false,\r
+ \r
+ constructor : function(config){\r
+ Ext.apply(this, config);\r
+ this.addEvents(\r
+ <div id="event-Ext.dd.DragTracker-mousedown"></div>/**\r
+ * @event mousedown\r
+ * @param {Object} this\r
+ * @param {Object} e event object\r
+ */\r
+ 'mousedown',\r
+ <div id="event-Ext.dd.DragTracker-mouseup"></div>/**\r
+ * @event mouseup\r
+ * @param {Object} this\r
+ * @param {Object} e event object\r
+ */\r
+ 'mouseup',\r
+ <div id="event-Ext.dd.DragTracker-mousemove"></div>/**\r
+ * @event mousemove\r
+ * @param {Object} this\r
+ * @param {Object} e event object\r
+ */\r
+ 'mousemove',\r
+ <div id="event-Ext.dd.DragTracker-dragstart"></div>/**\r
+ * @event dragstart\r
+ * @param {Object} this\r
+ * @param {Object} startXY the page coordinates of the event\r
+ */\r
+ 'dragstart',\r
+ <div id="event-Ext.dd.DragTracker-dragend"></div>/**\r
+ * @event dragend\r
+ * @param {Object} this\r
+ * @param {Object} e event object\r
+ */\r
+ 'dragend',\r
+ <div id="event-Ext.dd.DragTracker-drag"></div>/**\r
+ * @event drag\r
+ * @param {Object} this\r
+ * @param {Object} e event object\r
+ */\r
+ 'drag'\r
+ );\r
+ \r
+ this.dragRegion = new Ext.lib.Region(0,0,0,0);\r
+ \r
+ if(this.el){\r
+ this.initEl(this.el);\r
+ }\r
+ Ext.dd.DragTracker.superclass.constructor.call(this, config);\r
+ },\r
\r
initEl: function(el){\r
this.el = Ext.get(el);\r
return [dr.left, dr.top];\r
}\r
}\r
-});</pre>
-</body>
+});</pre> \r
+</body>\r
</html>
\ No newline at end of file