function set( bool ) {
	/* eslint-disable no-invalid-this */
	var err = isValid( bool );
	if ( err ) {
		throw err;
	}
	debug( 'Current value: %d.', this._autoRender );

	this._autoRender = bool;
	debug( 'New Value: %d.', this._autoRender );

	this.emit( CHANGE_EVENT );
}
Sets the rendering mode.

@private
@param {boolean} bool - boolean indicating whether to re-render on a change event
@throws {TypeError} must be a positive number