Simplify injection separation by using multiple arguments to extend().

This commit is contained in:
Jürg Lehni 2011-02-17 22:46:28 +00:00
parent 5850ef3cfc
commit e6dc189310

View file

@ -367,11 +367,8 @@ Path = PathItem.extend({
if (this.strokeColor) ctx.stroke(); if (this.strokeColor) ctx.stroke();
} }
} }
}); }, new function() { // inject methods that require scoped privates
/**
// Now inject methods that require scoped private functions and values.
Path.inject(new function() {
/**
* Solves a tri-diagonal system for one of coordinates (x or y) of first * Solves a tri-diagonal system for one of coordinates (x or y) of first
* bezier control points. * bezier control points.
* *