Fix infinite loop

This commit is contained in:
Nathan Gray 2011-08-16 16:44:21 +00:00
parent fef5ad8ebd
commit a6ebfff827

View File

@ -455,9 +455,9 @@ var et2_widget = Class.extend({
// Parse the legacy options // Parse the legacy options
var splitted = et2_csvSplit(_attrs[i].value); var splitted = et2_csvSplit(_attrs[i].value);
for (var i = 0; i < splitted.length && i < this.legacyOptions.length; i++) for (var j = 0; j < splitted.length && j < this.legacyOptions.length; j++)
{ {
this.setAttribute(this.legacyOptions[i], splitted[i]); this.setAttribute(this.legacyOptions[j], splitted[j]);
} }
} }
else else