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 9393
9494 FixedWidthMask . prototype . apply = function ( input , caretPosition ) {
9595 if ( caretPosition == null )
96- caretPosition = 0 ;
96+ caretPosition = this . length ;
9797 var buffer = [ ] ,
9898 raw = [ ] ,
9999 lastMatch = - 1 ,
200200 focusText = elm . value ;
201201
202202 function blurEvent ( e ) {
203- var result = mask . apply ( elm . value , 0 ) ;
203+ var result = mask . apply ( elm . value ) ;
204204 elm . value = result . trimmed ;
205205 if ( settings . autoclear && ! result . isComplete ) {
206206 elm . value = "" ;
279279 var caretTimeoutId ;
280280 function focusEvent ( e ) {
281281 clearTimeout ( caretTimeoutId ) ;
282- var result = mask . apply ( elm . value , 0 ) ;
282+ var result = mask . apply ( elm . value ) ;
283283 focusText = elm . value ;
284284
285285 caretTimeoutId = setTimeout ( function ( ) {
323323
324324 //Apply initital mask
325325 if ( elm . value . length ) {
326- var result = mask . apply ( elm . value , 0 ) ;
326+ var result = mask . apply ( elm . value ) ;
327327 elm . value = result . value ;
328328 }
329329 } ) ;
You can’t perform that action at this time.
0 commit comments