small compatibility fix for prototype.js

This commit is contained in:
Kemal Dag
2014-01-14 18:38:17 +02:00
parent ab486f7e1f
commit 94ef7cba5e

View File

@@ -1934,7 +1934,7 @@ less.Parser = function Parser(env) {
// at last, we have the complete match now. move forward,
// convert @{var}s to tree.Variable(s) and return:
skipWhitespace(length);
for (var k in name) {
for (var k=0; k < name.length; k++) {
if (name[k].charAt(0) === '@') {
name[k] = new tree.Variable('@' + name[k].slice(2, -1),
index[k], env.currentFileInfo);