1 function Sys$UI$Behavior$set_name(value) {
2 var e = Function._validateParams(arguments, [{name: "value", type: String}]);
3 if (e) throw e;
4 if ((value === '') || (value.charAt(0) === ' ') || (value.charAt(value.length - 1) === ' '))
5 throw Error.argument('value', Sys.Res.invalidId);
6 if (typeof(this._element[value]) !== 'undefined')
7 throw Error.invalidOperation(String.format(Sys.Res.behaviorDuplicateName, value));
8 if (this.get_isInitialized()) throw Error.invalidOperation(Sys.Res.cantSetNameAfterInit);
9 this._name = value;
10 }