Skip to content

Commit

Permalink
Item14230: fix initializer to match docu
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Nov 22, 2016
1 parent 9e23155 commit fac7003
Showing 1 changed file with 7 additions and 5 deletions.
@@ -1,8 +1,10 @@
"use strict";
jQuery(function($) {
$("input[mask]:not(.jqInitedMaskedInput)").livequery(function() {
var $this = $(this);
$this.addClass(".jqInitedMaskedInput");
var opts = $.extend({}, $this.metadata());
$this.mask($this.attr('mask'), opts);
$(".jqMaskedInput:not(.jqInitedMaskedInput)").livequery(function() {
var $this = $(this),
mask = $this.attr("mask"),
opts = $.extend({mask: mask}, $this.data(), $this.metadata());

$this.addClass("jqInitedMaskedInput").mask(opts.mask, opts);
});
});

0 comments on commit fac7003

Please sign in to comment.