4 * Copyright(c) 2006-2007, Ext JS, LLC.
6 * Originally Released Under LGPL - original licence link has changed is not relivant.
9 * <script type="text/javascript">
13 * @class Roo.dd.DDTarget
14 * A DragDrop implementation that does not move, but can be a drop
15 * target. You would get the same result by simply omitting implementation
16 * for the event callbacks, but this way we reduce the processing cost of the
17 * event listener and the callbacks.
18 * @extends Roo.dd.DragDrop
20 * @param {String} id the id of the element that is a drop target
21 * @param {String} sGroup the group of related DragDrop objects
22 * @param {object} config an object containing configurable attributes
23 * Valid properties for DDTarget in addition to those in
27 Roo.dd.DDTarget = function(id, sGroup, config) {
29 this.initTarget(id, sGroup, config);
31 if (config && (config.listeners || config.events)) {
32 Roo.dd.DragDrop.superclass.constructor.call(this, {
33 listeners : config.listeners || {},
34 events : config.events || {}
39 // Roo.dd.DDTarget.prototype = new Roo.dd.DragDrop();
40 Roo.extend(Roo.dd.DDTarget, Roo.dd.DragDrop, {
41 toString: function() {
42 return ("DDTarget " + this.id);