Skip to content

Commit 570633c

Browse files
committed
Optimize final transition
1 parent 5ea4f8e commit 570633c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/core/core.element.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,8 @@ helpers.extend(Element.prototype, {
7878
var start = me._start;
7979
var view = me._view;
8080

81-
// No animation -> No Transition
82-
if (!model || ease === 1) {
83-
me._view = helpers.clone(model);
81+
if (!model) {
82+
me._view = model;
8483
me._start = null;
8584
return me;
8685
}
@@ -95,6 +94,10 @@ helpers.extend(Element.prototype, {
9594

9695
interpolate(start, view, model, ease);
9796

97+
if (ease === 1) {
98+
me._start = null;
99+
}
100+
98101
return me;
99102
},
100103

0 commit comments

Comments
 (0)