@@ -314,23 +314,6 @@ ngUserControls['maskedit'] = {
314
314
return true ;
315
315
}
316
316
317
- /* Function: GetValidText
318
- * ...
319
- *
320
- * Syntax:
321
- * string *GetValidText* ()
322
- *
323
- * Parameters:
324
- * editOnly - ...
325
- *
326
- * Returns:
327
- * -
328
- */
329
- c . GetValidText = function ( ) {
330
- if ( ! c . IsValid ( ) ) return '' ;
331
- return c . GetText ( ) ;
332
- }
333
-
334
317
/* Function: GetParts
335
318
* ...
336
319
*
@@ -890,20 +873,19 @@ ngUserControls['maskedit'] = {
890
873
* ...
891
874
*
892
875
* Syntax:
893
- * bool *IsValid* ([mixed data = -1 , bool asArray = false])
876
+ * bool *IsValid* ([string text = null , bool asArray = false])
894
877
*
895
878
* Parameters:
896
- * data - int: part>=0 (-1 for all parts) / string: text
879
+ * text - ...
897
880
* asArray - ...
898
881
*
899
882
* Returns:
900
883
* -
901
884
*/
902
- c . IsValid = function ( data , asArray ) {
903
- var part = ( ng_typeNumberInt ( data ) ? data : - 1 ) ;
885
+ c . IsValid = function ( text , asArray ) {
904
886
asArray = ngVal ( asArray , false ) ;
905
887
906
- var parts = ( ng_typeString ( data ) ? c . textToParts ( data ) : c . GetParts ( part ) ) ;
888
+ var parts = ( ng_typeString ( text ) ? c . textToParts ( text ) : c . GetParts ( ) ) ;
907
889
if ( parts . length == 0 ) return false ;
908
890
909
891
var result = new Array ( ) ;
@@ -914,9 +896,7 @@ ngUserControls['maskedit'] = {
914
896
915
897
re = new RegExp ( parts [ i ] . RegExp ) ;
916
898
test = re . test ( parts [ i ] . Text ) ;
917
-
918
- if ( c . OnValidate ) result . push ( ng_toBool ( c . OnValidate ( c , parts [ i ] , test , re ) ) ) ;
919
- else result . push ( test ) ;
899
+ result . push ( test ) ;
920
900
}
921
901
922
902
if ( asArray ) return result ;
@@ -1178,11 +1158,6 @@ ngUserControls['maskedit'] = {
1178
1158
*/
1179
1159
c . OnGetAlt = null ;
1180
1160
1181
- /*
1182
- * Event: OnValidate
1183
- */
1184
- c . OnValidate = null ;
1185
-
1186
1161
/*
1187
1162
* Event: OnSetInvalid
1188
1163
*/
0 commit comments