diff options
author | wout <wout@impinc.co.uk> | 2013-06-23 15:32:20 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-06-23 15:32:20 +0100 |
commit | 65f915f1f3c878d97634ed360337d0ab2ea2d0d3 (patch) | |
tree | 5459c3fc8a0f43f14a5fea19f0aa82336b985073 /src | |
parent | 9841728efbe16219a1c412951841a06ee98ff6ec (diff) | |
download | svg.js-65f915f1f3c878d97634ed360337d0ab2ea2d0d3.tar.gz svg.js-65f915f1f3c878d97634ed360337d0ab2ea2d0d3.zip |
Added `get()` method to SVG.Container
Diffstat (limited to 'src')
-rw-r--r-- | src/container.js | 4 | ||||
-rw-r--r-- | src/gradient.js | 4 |
2 files changed, 4 insertions, 4 deletions
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] - } }) |