From 2952e01fc596618fd45f69fa39fd1f5e97fd8178 Mon Sep 17 00:00:00 2001 From: Justin Ridgewell Date: Sun, 16 Sep 2012 01:02:00 -0400 Subject: [PATCH] Change the import* functions to private --- src/svg/ImportSVG.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/svg/ImportSVG.js b/src/svg/ImportSVG.js index 2c583e54..6b92b44f 100644 --- a/src/svg/ImportSVG.js +++ b/src/svg/ImportSVG.js @@ -57,13 +57,13 @@ var ImportSVG = this.ImportSVG = Base.extend({ { switch (svg.nodeName.toLowerCase()) { case 'line': - item = this.importLine(svg); + item = this._importLine(svg); break; case 'rect': - item = this.importRectangle(svg); + item = this._importRectangle(svg); break; case 'ellipse': - item = this.importOval(svg); + item = this._importOval(svg); break; case 'g': item = this.importGroup(svg); @@ -81,7 +81,7 @@ var ImportSVG = this.ImportSVG = Base.extend({ * takes a svg circle node (xml dom) * returns Paper.js Path.Circle item */ - importCircle: function(svgCircle) + _importCircle: function(svgCircle) { var cx = svgCircle.cx.baseVal.value || 0; var cy = svgCircle.cy.baseVal.value || 0; @@ -98,7 +98,7 @@ var ImportSVG = this.ImportSVG = Base.extend({ * takes a svg ellipse node (xml dom) * returns Paper.js Path.Oval item */ - importOval: function(svgOval) + _importOval: function(svgOval) { var cx = svgOval.cx.baseVal.value || 0; var cy = svgOval.cy.baseVal.value || 0; @@ -124,7 +124,7 @@ var ImportSVG = this.ImportSVG = Base.extend({ * - Path.Rectangle item * - Path.RoundRectangle item (if the rectangle has rounded corners) */ - importRectangle: function(svgRectangle) + _importRectangle: function(svgRectangle) { var x = svgRectangle.x.baseVal.value || 0; var y = svgRectangle.y.baseVal.value || 0; @@ -153,7 +153,7 @@ var ImportSVG = this.ImportSVG = Base.extend({ * takes a svg line node (xml dom) * returns a Path.Line item */ - importLine: function(svgLine) + _importLine: function(svgLine) { var x1 = svgLine.x1.baseVal.value || 0; var y1 = svgLine.y1.baseVal.value || 0;