aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-12-03 16:19:21 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-12-03 16:19:21 +0100
commit6d164340d99434b9c11099a2e74d7cf4a4a7e322 (patch)
treec98d3b295f53c58f6affdb62d5df0ee546c29bdf /src/modules
parent135f9d03c11a295ff5a9e4bdc4683e8ea35e2f38 (diff)
downloadsvg.js-6d164340d99434b9c11099a2e74d7cf4a4a7e322.tar.gz
svg.js-6d164340d99434b9c11099a2e74d7cf4a4a7e322.zip
fixed methods not returning this and missing methods on List
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/optional/arrange.js2
-rw-r--r--src/modules/optional/sugar.js2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/optional/arrange.js b/src/modules/optional/arrange.js
index f06509a..7c9d994 100644
--- a/src/modules/optional/arrange.js
+++ b/src/modules/optional/arrange.js
@@ -99,11 +99,13 @@ export function after (element) {
export function insertBefore (element) {
element = makeInstance(element)
element.before(this)
+ return this
}
export function insertAfter (element) {
element = makeInstance(element)
element.after(this)
+ return this
}
registerMethods('Dom', {
diff --git a/src/modules/optional/sugar.js b/src/modules/optional/sugar.js
index 18f3e78..d4255c3 100644
--- a/src/modules/optional/sugar.js
+++ b/src/modules/optional/sugar.js
@@ -96,7 +96,7 @@ registerMethods([ 'Element', 'Runner' ], {
: (direction === 'y') ? [ 0, around ]
: isFinite(direction) ? [ direction, direction ]
: [ 0, 0 ]
- this.transform({ flip: directionString, origin: origin }, true)
+ return this.transform({ flip: directionString, origin: origin }, true)
},
// Opacity