Use faster Function#call() when arguments are clear.

This commit is contained in:
Jürg Lehni 2011-06-20 14:25:27 +01:00
parent 811f39f30e
commit 2c68e7e58f

View file

@ -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();
},