Skip to content
Features
Business
Explore
Pricing
This repository
Sign in
or
Sign up
Watch
84
Star
2,481
Fork
234
firstopinion
/
formatter.js
Code
Issues
36
Pull requests
14
Projects
0
Pulse
Graphs
Permalink
Browse files
Update formatter.js
master
(
#31
)
0.1.5
…
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
1 parent
5df8dcd
commit
d52974dfc2b4534024b0d2aa85c3c472b7aa0410
fabdouglas
committed
Jan 27, 2014
Unified
Split
Showing
1 changed file
with
2 additions
and
3 deletions
.
+2
−3
src/formatter.js
Show comments
View
5
src/formatter.js
@@ -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
);
Toggle all file notes
0 comments on commit
d52974d
Please
sign in
to comment.
You can't perform that action at this time.
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
0 comments on commit
d52974d