From 40f0d3c2b34887456ff08a73cc420b667ba80229 Mon Sep 17 00:00:00 2001 From: Arnold Daniels Date: Fri, 12 Oct 2012 02:14:18 +0200 Subject: [PATCH] Cast option.mask to string. Fixed issue #12 --- js/bootstrap-inputmask.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/bootstrap-inputmask.js b/js/bootstrap-inputmask.js index 438074b6..04b6f1cf 100644 --- a/js/bootstrap-inputmask.js +++ b/js/bootstrap-inputmask.js @@ -1,5 +1,5 @@ /* =========================================================== - * bootstrap-inputmask.js j1 + * bootstrap-inputmask.js j2 * http://twitter.github.com/bootstrap/javascript.html#tooltips * Based on Masked Input plugin by Josh Bush (digitalbush.com) * =========================================================== @@ -44,7 +44,7 @@ if (isAndroid) return // No support because caret positioning doesn't work on Android this.$element = $(element) - this.mask = options.mask + this.mask = String(options.mask) this.options = $.extend({}, $.fn.inputmask.defaults, options) this.init()