Skip to content

Commit

Permalink
Prevents trailing separator when using randomize on a custom layout. F…
Browse files Browse the repository at this point in the history
…ixes kbwood#4
  • Loading branch information
aldrinm committed Jul 19, 2016
1 parent 153848e commit 1a51109
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jquery.keypad.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* http://keith-wood.name/keypad.html
/* http://keith-wood.name/keypad.html
Keypad field entry extension for jQuery v2.0.1.
Written by Keith Wood (kbwood{at}iinet.com.au) August 2008.
Available under the MIT (https://github.com/jquery/jquery/blob/master/LICENSE.txt) license.
Expand Down Expand Up @@ -833,7 +833,7 @@
(inst.options.randomiseAll ? others[o++] :
(inst.options.isNumeric(keys[j]) ? numerics[n++] :
(inst.options.isAlphabetic(keys[j]) ? alphas[a++] :
others[o++])))) + inst.options.separator;
others[o++])))) + ((j+1)<keys.length?inst.options.separator:'');
}
}
return newLayout;
Expand Down

0 comments on commit 1a51109

Please sign in to comment.