1318 |
alexandre_ |
1 |
/*
|
|
|
2 |
Copyright (c) 2004-2006, The Dojo Foundation
|
|
|
3 |
All Rights Reserved.
|
|
|
4 |
|
|
|
5 |
Licensed under the Academic Free License version 2.1 or above OR the
|
|
|
6 |
modified BSD license. For more information on Dojo licensing, see:
|
|
|
7 |
|
|
|
8 |
http://dojotoolkit.org/community/licensing.shtml
|
|
|
9 |
*/
|
|
|
10 |
|
|
|
11 |
dojo.provide("dojo.widget.TreeDeselectOnDblselect");
|
|
|
12 |
dojo.require("dojo.widget.HtmlWidget");
|
|
|
13 |
dojo.require("dojo.widget.TreeSelectorV3");
|
|
|
14 |
dojo.deprecated("Does anyone still need this extension? (TreeDeselectOnDblselect)");
|
|
|
15 |
dojo.widget.defineWidget("dojo.widget.TreeDeselectOnDblselect", [dojo.widget.HtmlWidget], {selector:"", initialize:function () {
|
|
|
16 |
this.selector = dojo.widget.byId(this.selector);
|
|
|
17 |
dojo.event.topic.subscribe(this.selector.eventNames.dblselect, this, "onDblselect");
|
|
|
18 |
}, onDblselect:function (message) {
|
|
|
19 |
this.selector.deselect(message.node);
|
|
|
20 |
}});
|
|
|
21 |
|