File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -110,13 +110,13 @@ $.widget( "ui.mask", {
110
110
bufferLength = this . buffer . length ,
111
111
value = "" ;
112
112
113
- this . empty = this . isValid = true ;
113
+ this . isEmpty = this . isValid = true ;
114
114
for ( bufferPosition = 0 ; bufferPosition < bufferLength ; bufferPosition += bufferObject . length ) {
115
115
bufferObject = this . buffer [ bufferPosition ] ;
116
116
if ( bufferObject . literal && ! raw ) {
117
117
value += bufferObject . literal ;
118
118
} else if ( bufferObject . value ) {
119
- this . empty = false ;
119
+ this . isEmpty = false ;
120
120
value += bufferObject . value ;
121
121
for ( counter = bufferObject . value . length ; counter < bufferObject . length ; counter ++ ) {
122
122
value += this . options . placeholder ;
@@ -255,10 +255,10 @@ $.widget( "ui.mask", {
255
255
if ( focused === undefined ) {
256
256
focused = this . element [ 0 ] === document . activeElement ;
257
257
}
258
- // calling _getValue updates empty
258
+ // calling _getValue updates isEmpty
259
259
var value = this . _getValue ( ) ;
260
260
261
- if ( this . options . clearEmpty && this . empty && ! focused ) {
261
+ if ( this . options . clearEmpty && this . isEmpty && ! focused ) {
262
262
this . element . val ( "" ) ;
263
263
} else {
264
264
this . element . val ( value ) ;
You can’t perform that action at this time.
0 commit comments