Skip to content
Snippets Groups Projects
Commit 64c9fdcc authored by Thomas Tanghus's avatar Thomas Tanghus
Browse files

Speed up octemplate rendering.

parent d636e168
Branches
No related tags found
No related merge requests found
......@@ -60,11 +60,9 @@
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++) {
this.vars[key] = self.options.escapeFunction(this.vars[key]);
}
});
}
var _html = this._build(this.vars);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment