Skip to content

Commit

Permalink
Merge pull request #116 from RobinHerbots/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
RobinHerbots committed Sep 14, 2012
2 parents 4429942 + 81940ea commit 7153da2
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions js/jquery.inputmask.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* http://github.com/RobinHerbots/jquery.inputmask
* Copyright (c) 2010 - 2012 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 1.0.23
* Version: 1.0.23a
*/

(function ($) {
Expand Down Expand Up @@ -322,13 +322,15 @@

var test = tests[determineTestPosition(position)];
var elem = element;
switch (test.casing) {
case "upper":
elem = element.toUpperCase();
break;
case "lower":
elem = element.toLowerCase();
break;
if (elem != undefined) {
switch (test.casing) {
case "upper":
elem = element.toUpperCase();
break;
case "lower":
elem = element.toLowerCase();
break;
}
}

buffer[position] = elem;
Expand Down

0 comments on commit 7153da2

Please sign in to comment.