Forgot typeof condition
This commit is contained in:
parent
64c9fdcc28
commit
bfcf113ce7
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue