Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/Release02x01'
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Nov 22, 2016
2 parents a9f3aba + fac7003 commit 893d760
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 893d760

Please sign in to comment.