From 65f915f1f3c878d97634ed360337d0ab2ea2d0d3 Mon Sep 17 00:00:00 2001 From: wout Date: Sun, 23 Jun 2013 15:32:20 +0100 Subject: Added `get()` method to SVG.Container --- src/container.js | 4 ++++ src/gradient.js | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/container.js b/src/container.js index dbf2205..cb010f2 100644 --- a/src/container.js +++ b/src/container.js @@ -40,6 +40,10 @@ SVG.extend(SVG.Container, { , has: function(element) { return this.children().indexOf(element) >= 0 } + // Get a element at the given index +, get: function(i) { + return this.children()[i] + } // Iterates over all children and invokes a given block , each: function(block, deep) { var i, il diff --git a/src/gradient.js b/src/gradient.js index 71da7d1..2f6e30a 100644 --- a/src/gradient.js +++ b/src/gradient.js @@ -46,10 +46,6 @@ SVG.extend(SVG.Gradient, { , fill: function() { return 'url(#' + this.attr('id') + ')' } - // Get a stop at the given index -, get: function(i) { - return this.children()[i] - } }) -- cgit v1.2.3