Skip to content

Commit e10eaa1

Browse files
authored
refactor(clippath): replace manual args handling with spread operator
Signed-off-by: Mohit Davar <[email protected]>
1 parent cee6330 commit e10eaa1

File tree

1 file changed

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

1 file changed

+1
-6
lines changed

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

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,8 @@ function ClipPath( options ) {
129129
*/
130130
function onRender() {
131131
var args;
132-
var i;
133132
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 ];
138-
}
133+
args = [ 'render', ...Array.from( arguments ) ];
139134
self.emit.apply( self, args );
140135
}
141136
}

0 commit comments

Comments
 (0)