Bind to document instead of 'body'

As per https://github.com/twitter/bootstrap/pull/5308
This commit is contained in:
Alex Ghiculescu
2012-12-31 15:10:41 +10:00
parent 9565f1703a
commit 695b1ccafe

View File

@@ -350,7 +350,7 @@
* ================== */
$(function () {
$('body').on('focus.inputmask.data-api', '[data-mask]', function (e) {
$(document).on('focus.inputmask.data-api', '[data-mask]', function (e) {
var $this = $(this)
if ($this.data('inputmask')) return
e.preventDefault()
@@ -358,4 +358,4 @@
})
})
}(window.jQuery);
}(window.jQuery);