diff options
author | Kondou <kondou@ts.unde.re> | 2013-06-01 09:33:58 -0700 |
---|---|---|
committer | Kondou <kondou@ts.unde.re> | 2013-06-01 09:33:58 -0700 |
commit | cc1fdf073d6ce0b723aa5bb160039be30a127663 (patch) | |
tree | d269988707fa5b5773bb60331336441ab9a7f55d | |
parent | 1b3c9fe5ae8f0767580c38250fd852a2622176b4 (diff) | |
parent | bfcf113ce7e4293c955fd76e51e4515f29232b94 (diff) | |
download | nextcloud-server-cc1fdf073d6ce0b723aa5bb160039be30a127663.tar.gz nextcloud-server-cc1fdf073d6ce0b723aa5bb160039be30a127663.zip |
Merge pull request #3573 from owncloud/octemplate_speedup
Speed up octemplate rendering.
-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); |