aboutsummaryrefslogtreecommitdiffstats
path: root/src/animation/Morphable.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/animation/Morphable.js')
-rw-r--r--src/animation/Morphable.js19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/animation/Morphable.js b/src/animation/Morphable.js
index 240ca7b..9ce05d6 100644
--- a/src/animation/Morphable.js
+++ b/src/animation/Morphable.js
@@ -58,11 +58,12 @@ export default class Morphable {
}
done() {
- const complete = this._context
- .map(this._stepper.done)
- .reduce(function (last, curr) {
- return last && curr
- }, true)
+ const complete = this._context.map(this._stepper.done).reduce(function (
+ last,
+ curr
+ ) {
+ return last && curr
+ }, true)
return complete
}
@@ -111,16 +112,16 @@ export default class Morphable {
result = this._to
? result[this._to[4]]()
: this._from
- ? result[this._from[4]]()
- : result
+ ? result[this._from[4]]()
+ : result
}
if (this._type === ObjectBag) {
result = this._to
? result.align(this._to)
: this._from
- ? result.align(this._from)
- : result
+ ? result.align(this._from)
+ : result
}
result = result.toConsumable()