From e6dc189310fac5c99b43f56981e39d7b5e1bf99e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 17 Feb 2011 22:46:28 +0000 Subject: [PATCH] Simplify injection separation by using multiple arguments to extend(). --- src/path/Path.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/path/Path.js b/src/path/Path.js index bad64fbf..f08a86ca 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -367,11 +367,8 @@ Path = PathItem.extend({ if (this.strokeColor) ctx.stroke(); } } -}); - -// Now inject methods that require scoped private functions and values. -Path.inject(new function() { - /** +}, new function() { // inject methods that require scoped privates + /** * Solves a tri-diagonal system for one of coordinates (x or y) of first * bezier control points. *