Skip to content
Closed
Changes from 1 commit
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 @@ -108,13 +108,11 @@ function Marks( options ) {
* @private
*/
function onRender() {
var args;
var args = ['render'];
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
var args = ['render'];
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++ ) {
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]);
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
args.push(arguments[i]);
args.push( arguments[ i ] );

}
self.emit.apply( self, args );
}
Expand Down
Loading