Merge pull request #3573 from owncloud/octemplate_speedup

Speed up octemplate rendering.
This commit is contained in:
Kondou 2013-06-01 09:33:58 -07:00
commit cc1fdf073d
1 changed files with 4 additions and 4 deletions

View File

@ -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);