diff --git a/lib/node_modules/@stdlib/plot/components/svg/clip-path/lib/main.js b/lib/node_modules/@stdlib/plot/components/svg/clip-path/lib/main.js index 38af904b61b6..471607144c49 100644 --- a/lib/node_modules/@stdlib/plot/components/svg/clip-path/lib/main.js +++ b/lib/node_modules/@stdlib/plot/components/svg/clip-path/lib/main.js @@ -131,12 +131,12 @@ function ClipPath( options ) { var args; var i; debug( 'Received a render event. Re-emitting...' ); - args = new Array( arguments.length+1 ); - args[ 0 ] = 'render'; - for ( i = 0; i < arguments.length; i++ ) { - args[ i+1 ] = arguments[ i ]; + args = []; + args[0] = 'render'; + for (i = 0; i < arguments.length; i++) { + args.push(arguments[i]); } - self.emit.apply( self, args ); + self.emit.apply(self, args); } }