Remove Base.merge() and use a new Straps.js feature instead.

A more clever Base() constructor that allows merging.
This commit is contained in:
Jürg Lehni 2013-11-28 22:20:00 +01:00
parent 2d38c9220d
commit 593e0d8d7f
15 changed files with 28 additions and 51 deletions
src/project

View file

@ -425,9 +425,9 @@ var Project = PaperScopeItem.extend(/** @lends Project# */{
this._drawCount++;
ctx.save();
matrix.applyToContext(ctx);
// Use Base.merge() so we can use param.extend() to easily override
// Use new Base() so we can use param.extend() to easily override
// values
var param = Base.merge({
var param = new Base({
offset: new Point(0, 0),
ratio: ratio,
// A stack of concatenated matrices, to keep track of the current