Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions lib/node_modules/@stdlib/plot/ctor/lib/props/x-min/set.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,23 @@
function set( min ) {
/* eslint-disable no-invalid-this */

// TODO: add test to determine if evaluates to valid date?

Check warning on line 47 in lib/node_modules/@stdlib/plot/ctor/lib/props/x-min/set.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected 'todo' comment: 'TODO: add test to determine if evaluates...'
if (
!isNull( min ) &&
!isNumber( min ) // FIXME: finite number

Check warning on line 50 in lib/node_modules/@stdlib/plot/ctor/lib/props/x-min/set.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected 'fixme' comment: 'FIXME: finite number'

// TODO: Date
// TODO: Date

Check warning on line 52 in lib/node_modules/@stdlib/plot/ctor/lib/props/x-min/set.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unexpected 'todo' comment: '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' );
}
}


Expand Down