Permalink
Browse files

Update formatter.js

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

0 comments on commit d52974d

Please sign in to comment.