Skip to content

Commit ebf178a

Browse files
committed
fix: replace new Array() with array literal to satisfy stdlib/no-new-array lint rule
1 parent ad9b000 commit ebf178a

File tree

1 file changed

+5
-5
lines changed
  • lib/node_modules/@stdlib/plot/components/svg/clip-path/lib

1 file changed

+5
-5
lines changed

lib/node_modules/@stdlib/plot/components/svg/clip-path/lib/main.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@ function ClipPath( options ) {
131131
var args;
132132
var i;
133133
debug( 'Received a render event. Re-emitting...' );
134-
args = new Array( arguments.length+1 );
135-
args[ 0 ] = 'render';
136-
for ( i = 0; i < arguments.length; i++ ) {
137-
args[ i+1 ] = arguments[ i ];
134+
args = [];
135+
args[0] = 'render';
136+
for (i = 0; i < arguments.length; i++) {
137+
args.push(arguments[i]);
138138
}
139-
self.emit.apply( self, args );
139+
self.emit.apply(self, args);
140140
}
141141
}
142142

0 commit comments

Comments
 (0)