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,7 +61,9 @@
if(typeof this.options.escapeFunction === 'function') {
for (var key = 0; key < this.vars.length; key++) {
this.vars[key] = self.options.escapeFunction(this.vars[key]);
if(typeof this.vars[key] === 'string') {
this.vars[key] = self.options.escapeFunction(this.vars[key]);
}
}
}