Permalink
Browse files

Mask: fix bug in raw-value-retrieval logic

  • Loading branch information...
1 parent dab7f29 commit 8cca5e5f94876e1f274401d17b9b51f1ec0d9e34 Zach Shepherd committed Oct 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/jquery.ui.mask.js
View
@@ -125,7 +125,7 @@ $.widget( "ui.mask", {
for ( bufferPosition = 0; bufferPosition < bufferLength; bufferPosition += bufferObject.length ) {
bufferObject = this.buffer[ bufferPosition ];
if ( bufferObject.literal ) {
- if ( !raw && bufferPosition < this.optionalPosition || this.isValid ) {
+ if ( !raw && ( bufferPosition < this.optionalPosition || this.isValid ) ) {
value += bufferObject.literal;
}
} else if ( bufferObject.value ) {

0 comments on commit 8cca5e5

Please sign in to comment.