diff --git a/lib/node_modules/@stdlib/plot/ctor/lib/props/x-min/set.js b/lib/node_modules/@stdlib/plot/ctor/lib/props/x-min/set.js index 6a097f0235fa..8ba2ec72b103 100644 --- a/lib/node_modules/@stdlib/plot/ctor/lib/props/x-min/set.js +++ b/lib/node_modules/@stdlib/plot/ctor/lib/props/x-min/set.js @@ -49,16 +49,18 @@ function set( min ) { !isNull( min ) && !isNumber( min ) // FIXME: finite number - // TODO: Date + // TODO: Date ) { throw new TypeError( format( 'invalid assignment. `%s` must be a finite number, Date, or null. Value: `%s`.', 'xMin', min ) ); } - debug( 'Current value: %s.', this._xMin ); + if ( min !== this._xMin ) { + debug( 'Current value: %s.', this._xMin ); - this._xMin = min; - debug( 'New value: %s.', this._xMin ); + this._xMin = min; + debug( 'New value: %s.', this._xMin ); - this.emit( 'change' ); + this.emit( 'change' ); + } }