summaryrefslogtreecommitdiffstats
path: root/src/parent.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-07-30 11:04:56 +0200
committerwout <wout@impinc.co.uk>2014-07-30 11:04:56 +0200
commit725828a6fc3ad423b4bd61710fe541d9b5feb3a1 (patch)
tree43bcdc2d3e6658e6f6f5b70de3dd71f5bcec35fe /src/parent.js
parent411a621d7ac1b84c684d59b99bd4979f28805a64 (diff)
downloadsvg.js-725828a6fc3ad423b4bd61710fe541d9b5feb3a1.tar.gz
svg.js-725828a6fc3ad423b4bd61710fe541d9b5feb3a1.zip
Added reverse functionality for animation loops
Diffstat (limited to 'src/parent.js')
-rwxr-xr-xsrc/parent.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parent.js b/src/parent.js
index bde35da..1954259 100755
--- a/src/parent.js
+++ b/src/parent.js
@@ -18,10 +18,10 @@ SVG.Parent = SVG.invent({
// Add given element at a position
, add: function(element, i) {
if (!this.has(element)) {
- // Define insertion index if none given
+ // define insertion index if none given
i = i == null ? this.children().length : i
- // Add element references
+ // add element references
this.node.insertBefore(element.node, this.node.childNodes[i] || null)
}