Fix "Cannot read property 'anchor' of undefined"
This commit is contained in:
+7
-3
@@ -609,10 +609,14 @@ class View extends BaseObject {
|
|||||||
if (series[0].callback) {
|
if (series[0].callback) {
|
||||||
animationCallback(series[0].callback, false);
|
animationCallback(series[0].callback, false);
|
||||||
}
|
}
|
||||||
anchor = anchor ||
|
if (!anchor) {
|
||||||
series.filter(function(animation) {
|
const animations = series.filter(function(animation) {
|
||||||
return !animation.complete;
|
return !animation.complete;
|
||||||
})[0].anchor;
|
});
|
||||||
|
if (animations.length > 0) {
|
||||||
|
anchor = animations[0].anchor;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.animations_.length = 0;
|
this.animations_.length = 0;
|
||||||
this.cancelAnchor_ = anchor;
|
this.cancelAnchor_ = anchor;
|
||||||
|
|||||||
Reference in New Issue
Block a user