|
|
@ -141,7 +141,7 @@ var args_isMaintenance = function (args) {
|
|
|
|
|
|
|
|
|
|
|
|
var makeBroadcastSetter = function (attr, validation) {
|
|
|
|
var makeBroadcastSetter = function (attr, validation) {
|
|
|
|
return function (Env, args) {
|
|
|
|
return function (Env, args) {
|
|
|
|
if ((validation && !validation(args)) || !args_isString(args)) {
|
|
|
|
if ((validation && !validation(args)) && !args_isString(args)) {
|
|
|
|
throw new Error('INVALID_ARGS');
|
|
|
|
throw new Error('INVALID_ARGS');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var str = args[0];
|
|
|
|
var str = args[0];
|
|
|
|