mirror of
https://github.com/jasny/bootstrap.git
synced 2026-01-22 20:57:58 -05:00
Cast option.mask to string. Fixed issue #12
This commit is contained in:
4
js/bootstrap-inputmask.js
vendored
4
js/bootstrap-inputmask.js
vendored
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user