Skip to content

Commit

Permalink
used loop to initialize array instead spread (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
azhavoro authored and nmanovic committed Dec 29, 2018
1 parent 1b9acfb commit c2df79f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cvat/apps/engine/static/engine/js/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ var UserActivityHandler = function()

class LogCollection extends Array {
constructor(logger, items) {
super(...items);
super(items.length);
for (let i = 0; i < items.length; i++) {
super[i] = items[i];
}
this._loggerHandler = logger;
}

Expand Down

0 comments on commit c2df79f

Please sign in to comment.