mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-23 08:29:24 +08:00
109 lines
3.7 KiB
JavaScript
109 lines
3.7 KiB
JavaScript
// ValidityState对象
|
|
|
|
ValidityState = function ValidityState() {
|
|
let arg = arguments[0];
|
|
if (arg != 'bobo' && (this instanceof ValidityState)) {
|
|
return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor");
|
|
}
|
|
;
|
|
bodavm.toolsFunc.symbolProperty(this);
|
|
if (arg != 'bobo') {
|
|
console.log_copy('ValidityState 实例化对象 --->', JSON.stringify_bo(arguments, function (k, v) {
|
|
if (v == window) {
|
|
return 'window';
|
|
} else {
|
|
return v;
|
|
}
|
|
}));
|
|
}
|
|
;
|
|
};
|
|
bodavm.toolsFunc.safeProto(ValidityState, "ValidityState");
|
|
bodavm.toolsFunc.defineProperty(ValidityState.prototype, "valueMissing", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function valueMissing() {
|
|
return bodavm.toolsFunc.dispatch(this, ValidityState.prototype, "ValidityState", "valueMissing_get", arguments);
|
|
},
|
|
set: undefined
|
|
});
|
|
bodavm.toolsFunc.defineProperty(ValidityState.prototype, "typeMismatch", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function typeMismatch() {
|
|
return bodavm.toolsFunc.dispatch(this, ValidityState.prototype, "ValidityState", "typeMismatch_get", arguments);
|
|
},
|
|
set: undefined
|
|
});
|
|
bodavm.toolsFunc.defineProperty(ValidityState.prototype, "patternMismatch", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function patternMismatch() {
|
|
return bodavm.toolsFunc.dispatch(this, ValidityState.prototype, "ValidityState", "patternMismatch_get", arguments);
|
|
},
|
|
set: undefined
|
|
});
|
|
bodavm.toolsFunc.defineProperty(ValidityState.prototype, "tooLong", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function tooLong() {
|
|
return bodavm.toolsFunc.dispatch(this, ValidityState.prototype, "ValidityState", "tooLong_get", arguments);
|
|
},
|
|
set: undefined
|
|
});
|
|
bodavm.toolsFunc.defineProperty(ValidityState.prototype, "tooShort", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function tooShort() {
|
|
return bodavm.toolsFunc.dispatch(this, ValidityState.prototype, "ValidityState", "tooShort_get", arguments);
|
|
},
|
|
set: undefined
|
|
});
|
|
bodavm.toolsFunc.defineProperty(ValidityState.prototype, "rangeUnderflow", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function rangeUnderflow() {
|
|
return bodavm.toolsFunc.dispatch(this, ValidityState.prototype, "ValidityState", "rangeUnderflow_get", arguments);
|
|
},
|
|
set: undefined
|
|
});
|
|
bodavm.toolsFunc.defineProperty(ValidityState.prototype, "rangeOverflow", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function rangeOverflow() {
|
|
return bodavm.toolsFunc.dispatch(this, ValidityState.prototype, "ValidityState", "rangeOverflow_get", arguments);
|
|
},
|
|
set: undefined
|
|
});
|
|
bodavm.toolsFunc.defineProperty(ValidityState.prototype, "stepMismatch", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function stepMismatch() {
|
|
return bodavm.toolsFunc.dispatch(this, ValidityState.prototype, "ValidityState", "stepMismatch_get", arguments);
|
|
},
|
|
set: undefined
|
|
});
|
|
bodavm.toolsFunc.defineProperty(ValidityState.prototype, "badInput", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function badInput() {
|
|
return bodavm.toolsFunc.dispatch(this, ValidityState.prototype, "ValidityState", "badInput_get", arguments);
|
|
},
|
|
set: undefined
|
|
});
|
|
bodavm.toolsFunc.defineProperty(ValidityState.prototype, "customError", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function customError() {
|
|
return bodavm.toolsFunc.dispatch(this, ValidityState.prototype, "ValidityState", "customError_get", arguments);
|
|
},
|
|
set: undefined
|
|
});
|
|
bodavm.toolsFunc.defineProperty(ValidityState.prototype, "valid", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function valid() {
|
|
return bodavm.toolsFunc.dispatch(this, ValidityState.prototype, "ValidityState", "valid_get", arguments);
|
|
},
|
|
set: undefined
|
|
}); |