Forgot typeof condition

remotes/origin/stable6
Thomas Tanghus 13 years ago
parent 64c9fdcc28
commit bfcf113ce7
  1. 4
      core/js/octemplate.js

@ -61,7 +61,9 @@
if(typeof this.options.escapeFunction === 'function') {
for (var key = 0; key < this.vars.length; key++) {
this.vars[key] = self.options.escapeFunction(this.vars[key]);
if(typeof this.vars[key] === 'string') {
this.vars[key] = self.options.escapeFunction(this.vars[key]);
}
}
}

Loading…
Cancel
Save