diff options
-rw-r--r-- | core/js/octemplate.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/js/octemplate.js b/core/js/octemplate.js index e032506c0b1..e69c6cc56e0 100644 --- a/core/js/octemplate.js +++ b/core/js/octemplate.js @@ -60,11 +60,11 @@ var self = this; if(typeof this.options.escapeFunction === 'function') { - $.each(this.vars, function(key, val) { - if(typeof val === 'string') { - self.vars[key] = self.options.escapeFunction(val); + for (var key = 0; key < this.vars.length; key++) { + if(typeof this.vars[key] === 'string') { + this.vars[key] = self.options.escapeFunction(this.vars[key]); } - }); + } } var _html = this._build(this.vars); |