Forgot typeof condition

This commit is contained in:
Thomas Tanghus 2013-06-01 16:47:34 +02:00
parent 64c9fdcc28
commit bfcf113ce7
1 changed files with 3 additions and 1 deletions

View File

@ -61,9 +61,11 @@
if(typeof this.options.escapeFunction === 'function') { if(typeof this.options.escapeFunction === 'function') {
for (var key = 0; key < this.vars.length; key++) { for (var key = 0; key < this.vars.length; key++) {
if(typeof this.vars[key] === 'string') {
this.vars[key] = self.options.escapeFunction(this.vars[key]); this.vars[key] = self.options.escapeFunction(this.vars[key]);
} }
} }
}
var _html = this._build(this.vars); var _html = this._build(this.vars);
return $(_html); return $(_html);