fixing IE problem, does not parse "class" as attribute name

This commit is contained in:
Ralf Becker 2012-03-22 16:24:48 +00:00
parent 9a5ce92eb4
commit 7bf2a9f575

View File

@ -636,7 +636,7 @@ var et2_link = et2_valueWidget.extend([et2_IDetachedDOM], {
this.link = $j(document.createElement("span"))
.addClass("et2_link");
if(this.options.class) this.link.addClass(this.options.class);
if(this.options['class']) this.link.addClass(this.options['class']);
this.setDOMNode(this.link[0]);
},
destroy: function() {
@ -768,7 +768,7 @@ var et2_link_string = et2_valueWidget.extend([et2_IDetachedDOM], {
this.list = $j(document.createElement("ul"))
.addClass("et2_link_string");
if(this.options.class) this.node.addClass(this.options.class);
if(this.options['class']) this.node.addClass(this.options['class']);
this.setDOMNode(this.list[0]);
},
@ -884,7 +884,7 @@ var et2_link_list = et2_link_string.extend({
this.list = $j(document.createElement("table"))
.addClass("et2_link_list");
if(this.options.class) this.node.addClass(this.options.class);
if(this.options['class']) this.node.addClass(this.options['class']);
this.setDOMNode(this.list[0]);
},