Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ function Marks( options ) {
function onRender() {
var args;
var i;
debug( 'Received a render event. Re-emitting...' );
args = new Array( arguments.length+1 );
args = [] ;
args[ 0 ] = 'render';
debug( 'Received a render event. Re-emitting...' );
for ( i = 0; i < arguments.length; i++ ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for ( i = 0; i < arguments.length; i++ ) {
args = [];
args[ 0 ] = 'render';
for ( i = 0; i < arguments.length; i++ ) {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should work

args[ i+1 ] = arguments[ i ];
args.push( arguments[ i ] );
}
self.emit.apply( self, args );
}
Expand Down
Loading