Permalink
Browse files

Fixed refactoring issue with {{XXXX.YYYY}}

  • Loading branch information...
1 parent ec7b833 commit f3d695b1464910003d87f24ba50368ca2e58c293 @makiwara committed Aug 12, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 jdango.js
View
@@ -141,8 +141,10 @@
if (t[j] == "")
replacement = '__asterisk__';
else
+ {
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;
}
c[i] = '_+="'+t.join("").replace(/\\/g, "\\\\").replace(/"/g, "\\\"")

0 comments on commit f3d695b

Please sign in to comment.