Open
Description
It seems when loading in web-animations-next
more than once, various errors start to get thrown e.g. this._animation.cancel()
where this._animation
is null
.
See this jsbin for repro - if you comment out one of the script
tags, it'll work. It's not affected if you uncomment the web-animations.js
tags, or if they're included twice.
My guess is it's something to do with overloading the animate
function on the element proto - though I really can't be sure. For example, in web-animations-bonus-cancel-events.js or perhaps keyframe-effect-constructor.js or web-animations-bonus-object-form-keyframes.js (though last one unlikely given it appears to just be normalizing inputs).
Anyone got any idea what's going on here?