diff options
Diffstat (limited to 'src/rect.js')
-rwxr-xr-x | src/rect.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/rect.js b/src/rect.js index 825dd32..8f90e90 100755 --- a/src/rect.js +++ b/src/rect.js @@ -1,15 +1,15 @@ SVG.Rect = SVG.invent({ - // Initialize node + // Initialize node create: 'rect' - // Inherit from + // Inherit from , inherit: SVG.Shape - - // Add parent method + + // Add parent method , construct: { - // Create a rect element - rect: function(width, height) { - return this.put(new SVG.Rect().size(width, height)) - } - } + // Create a rect element + rect: function(width, height) { + return this.put(new SVG.Rect().size(width, height)) + } + } })
\ No newline at end of file |