diff options
Diffstat (limited to 'src/container.js')
-rw-r--r-- | src/container.js | 4 |
1 files changed, 4 insertions, 0 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 |