function set( orient ) {
	/* eslint-disable no-invalid-this */
	if ( indexOf( ORIENTATIONS, orient ) === -1 ) {
		throw new TypeError( format( 'invalid assignment. `%s` must be one of the following: "%s". Value: `%s`.', 'orientation', ORIENTATIONS.join( '", "' ), orient ) );
	}
	if ( orient !== this._orientation ) {
		debug( 'Current value: %d.', this._orientation );

		this._orientation = orient;
		debug( 'New Value: %d.', this._orientation );

		this.emit( 'change' );
	}
}
Sets the orientation.

@private
@param {string} orient - orientation
@throws {TypeError} must be a supported orientation