From 2c68e7e58f4812e9218411d1bd78d9cb04ab0a8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 20 Jun 2011 14:25:27 +0100 Subject: [PATCH] Use faster Function#call() when arguments are clear. --- src/item/Layer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/item/Layer.js b/src/item/Layer.js index 8fcffc46..ee926df2 100644 --- a/src/item/Layer.js +++ b/src/item/Layer.js @@ -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(); },