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 5ef17d0 commit 2b5f9b1Copy full SHA for 2b5f9b1
lib/node_modules/@stdlib/plot/components/svg/clip-path/lib/main.js
@@ -131,11 +131,9 @@ function ClipPath( options ) {
131
var args;
132
var i;
133
debug( 'Received a render event. Re-emitting...' );
134
- args = [];
135
- args.length = arguments.length + 1;
136
- args[ 0 ] = 'render';
+ args = [ 'render' ];
137
for ( i = 0; i < arguments.length; i++ ) {
138
- args[ i+1 ] = arguments[ i ];
+ args.push( arguments[ i ] );
139
}
140
self.emit.apply( self, args );
141
0 commit comments