Skip to content

Commit

Permalink
Fixed refactoring issue with {{XXXX.YYYY}}
Browse files Browse the repository at this point in the history
  • Loading branch information
makiwara committed Aug 12, 2011
1 parent ec7b833 commit f3d695b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jdango.js
Expand Up @@ -141,8 +141,10 @@
if (t[j] == "") if (t[j] == "")
replacement = '__asterisk__'; replacement = '__asterisk__';
else else
{
replacement = 'ctx['+this.variableSeparator+t[j]+this.variableSeparator+']'; replacement = 'ctx['+this.variableSeparator+t[j]+this.variableSeparator+']';
t[j] = t[j].split(".").join(this.variableSeparator+"]["+this.variableSeparator); replacement = replacement.split(".").join(this.variableSeparator+"]["+this.variableSeparator);
}
t[j] = this.variableSeparator+ "+"+replacement+"+" +this.variableSeparator; t[j] = this.variableSeparator+ "+"+replacement+"+" +this.variableSeparator;
} }
c[i] = '_+="'+t.join("").replace(/\\/g, "\\\\").replace(/"/g, "\\\"") c[i] = '_+="'+t.join("").replace(/\\/g, "\\\\").replace(/"/g, "\\\"")
Expand Down

0 comments on commit f3d695b

Please sign in to comment.