We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbc6886 commit c3d20bfCopy full SHA for c3d20bf
lib/node_modules/@stdlib/plot/components/svg/annotations/lib/ctor.js
@@ -6,6 +6,7 @@ var debug = require( 'debug' )( 'annotations:main' );
6
var EventEmitter = require( 'events' ).EventEmitter;
7
var setReadOnly = require( '@stdlib/utils/define-read-only-property' );
8
var inherit = require( '@stdlib/utils/inherit' );
9
+var instanceOf = require( '@stdlib/assert/instance-of' );
10
11
12
// MAIN //
@@ -21,7 +22,7 @@ var inherit = require( '@stdlib/utils/inherit' );
21
22
*/
23
function Annotations() {
24
var self;
- if ( !( this instanceof Annotations ) ) {
25
+ if ( !instanceOf( this, Annotations ) ) {
26
return new Annotations();
27
}
28
self = this;
0 commit comments