aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/optional
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/optional')
-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