Subversion Repositories Applications.papyrus

Rev

Rev 1318 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1318 Rev 1422
Line 6... Line 6...
6
	modified BSD license. For more information on Dojo licensing, see:
6
	modified BSD license. For more information on Dojo licensing, see:
Line 7... Line 7...
7
 
7
 
8
		http://dojotoolkit.org/community/licensing.shtml
8
		http://dojotoolkit.org/community/licensing.shtml
Line -... Line 9...
-
 
9
*/
-
 
10
 
9
*/
11
 
10
 
12
 
11
dojo.provide("dojo.widget.TreeSelector");
13
dojo.provide("dojo.widget.TreeSelector");
12
dojo.require("dojo.widget.HtmlWidget");
14
dojo.require("dojo.widget.HtmlWidget");
13
dojo.widget.defineWidget("dojo.widget.TreeSelector", dojo.widget.HtmlWidget, function () {
15
dojo.widget.defineWidget("dojo.widget.TreeSelector", dojo.widget.HtmlWidget, function () {
14
	this.eventNames = {};
16
	this.eventNames = {};
15
	this.listenedTrees = [];
17
	this.listenedTrees = [];
16
}, {widgetType:"TreeSelector", selectedNode:null, dieWithTree:false, eventNamesDefault:{select:"select", destroy:"destroy", deselect:"deselect", dblselect:"dblselect"}, initialize:function () {
18
}, {widgetType:"TreeSelector", selectedNode:null, dieWithTree:false, eventNamesDefault:{select:"select", destroy:"destroy", deselect:"deselect", dblselect:"dblselect"}, initialize:function () {
17
	for (name in this.eventNamesDefault) {
19
	for (var name in this.eventNamesDefault) {
18
		if (dojo.lang.isUndefined(this.eventNames[name])) {
20
		if (dojo.lang.isUndefined(this.eventNames[name])) {
19
			this.eventNames[name] = this.widgetId + "/" + this.eventNamesDefault[name];
21
			this.eventNames[name] = this.widgetId + "/" + this.eventNamesDefault[name];
20
		}
22
		}