mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Use faster Function#call() when arguments are clear.
This commit is contained in:
parent
811f39f30e
commit
2c68e7e58f
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ var Layer = this.Layer = Group.extend({
|
|||
this._project = paper.project;
|
||||
// Push it onto project.layers and set index:
|
||||
this._index = this._project.layers.push(this) - 1;
|
||||
this.base.apply(this, arguments);
|
||||
this.base.call(this, items);
|
||||
this.activate();
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue