This repository has been archived on 2024-07-18. You can view files and clone it, but cannot push or open issues or pull requests.
lwb5/misc/Legacy Worlds.wdgt/lib/LWWidget/Data.js

26 lines
456 B
JavaScript
Raw Normal View History

2016-01-10 11:01:49 +01:00
LWWidget.Data = Base.inherits({
constructor: function (name) {
this.base();
this.name = name;
this.attributes = new Base.Util.Hashtable();
},
setAttribute: function (name, value) {
this.attributes.put(name, value);
},
getAttribute: function (name) {
return (this.attributes.containsKey(name) ? this.attributes.get(name) : null);
},
getChildren: function (name) {
return new Array();
},
getText: function () {
return "";
}
});