From a6ebfff8272c052fa1175c1d6dc88c3c6b1eeb11 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 16 Aug 2011 16:44:21 +0000 Subject: [PATCH] Fix infinite loop --- etemplate/js/et2_widget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/js/et2_widget.js b/etemplate/js/et2_widget.js index 066d3bf6f2..5df26cce43 100644 --- a/etemplate/js/et2_widget.js +++ b/etemplate/js/et2_widget.js @@ -455,9 +455,9 @@ var et2_widget = Class.extend({ // Parse the legacy options 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