Skip to content
Snippets Groups Projects
Commit cc1fdf07 authored by Christopher Schäpers's avatar Christopher Schäpers
Browse files

Merge pull request #3573 from owncloud/octemplate_speedup

Speed up octemplate rendering.
parents 1b3c9fe5 bfcf113c
Branches
No related tags found
Loading
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment