Permalink
Browse files

Update formatter.js

1 parent e712ed2 commit 5df8dcd7795c928376cf01dc7897b98ffc993298 @fabdouglas fabdouglas committed Jan 27, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/formatter.js
View
@@ -106,7 +106,9 @@ Formatter.addInptType = function (char, reg) {
//
Formatter.prototype.resetPattern = function (str) {
// Update opts to hold new pattern
- this.opts.pattern = str;
+ if (str) {
+ this.opts.pattern = str;
+ }
// Get current state
this.sel = inptSel.get(this.el);

0 comments on commit 5df8dcd

Please sign in to comment.