SWF-1268 Initialze the widgetAttrs field of Spring.ElementDecoration in its constructor

This commit is contained in:
Rossen Stoyanchev
2010-07-14 17:35:20 +00:00
parent a97bb1bf6b
commit 73ea5cd6e1

View File

@@ -25,6 +25,7 @@ dojo.declare("Spring.DefaultEquals", null, {
dojo.declare("Spring.ElementDecoration", [Spring.AbstractElementDecoration, Spring.DefaultEquals], {
constructor : function(config) {
this.widgetAttrs = {};
this.copyFields = new Array('name', 'value', 'type', 'checked', 'selected', 'readOnly', 'disabled', 'alt', 'maxLength', 'class', 'title');
dojo.mixin(this, config);
this.element = dojo.byId(this.elementId);