function(name, value) {
				if (!options.hasOwnProperty(name)) {
					return;
				}

				var oldValue = options[name];

				switch (name) {
					case 'accept':
						if (typeof(value) === 'string') {
							value = Mime.mimes2extList(value);
						}
						break;

					case 'container':
					case 'required_caps':
						throw new x.FileException(x.FileException.NO_MODIFICATION_ALLOWED_ERR);
				}

				options[name] = value;
				this.exec('FileInput', 'setOption', name, value);

				this.trigger('OptionChanged', name, value, oldValue);
			}
function(name, value) {
				if (!options.hasOwnProperty(name)) {
					return;
				}

				var oldValue = options[name];

				switch (name) {
					case 'accept':
						if (typeof(value) === 'string') {
							value = Mime.mimes2extList(value);
						}
						break;

					case 'container':
					case 'required_caps':
						throw new x.FileException(x.FileException.NO_MODIFICATION_ALLOWED_ERR);
				}

				options[name] = value;
				this.exec('FileInput', 'setOption', name, value);

				this.trigger('OptionChanged', name, value, oldValue);
			}
function ( name , value ) { if ( ! options . hasOwnProperty ( name ) ) { return ; } var oldValue = options [ name ] ; switch ( name ) { case 'accept' : if ( typeof ( value ) === 'string' ) { value = Mime . mimes2extList ( value ) ; } break ; case 'container' : case 'required_caps' : throw new x . FileException ( x . FileException . NO_MODIFICATION_ALLOWED_ERR ) ; } options [ name ] = value ; this . exec ( 'FileInput' , 'setOption' , name , value ) ; this . trigger ( 'OptionChanged' , name , value , oldValue ) ; }
Sets a new value for the option specified by name

@method setOption
@param name
@param value
Sets a new value for the option specified by name