Skip to content

Commit 0ea1933

Browse files
committed
Remove old 'Animation' and getAnimationPlayers.
1 parent fc2c77b commit 0ea1933

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

src/keyframe-effect-constructor.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -171,25 +171,5 @@
171171
return animation.effect !== null && animation.effect.target == this;
172172
}.bind(this));
173173
};
174-
window.Element.prototype.getAnimationPlayers = function() {
175-
shared.deprecated('Element.getAnimationPlayers', '2015-03-23', 'Use Element.getAnimations instead.');
176-
return this.getAnimations();
177-
};
178-
179-
// Alias KeyframeEffect to Animation, to support old constructor (Animation) for a deprecation
180-
// period. Should be removed after 23 June 2015.
181-
//
182-
// This is only on window and not on scope, because the constructor that was called
183-
// webAnimationsNext.Player - now called webAnimationsNext.Animation - is already on the scope.
184-
//
185-
// FIXME: Add this to scope & expose the other scope.Animation (nee scope.Player). I.e. both this
186-
// function and the constructor in web-animations-next-animation should be scope.Animation and
187-
// window.Animation until 23 June 2015.
188-
window.Animation = function() {
189-
shared.deprecated('window.Animation', '2015-03-23', 'Use window.KeyframeEffect instead.');
190-
window.KeyframeEffect.apply(this, arguments);
191-
};
192-
window.Animation.prototype = Object.create(window.KeyframeEffect.prototype);
193-
window.Animation.prototype.constructor = window.Animation;
194174

195175
}(webAnimationsShared, webAnimationsNext, webAnimationsTesting));

src/timeline.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@
3333
this._discardAnimations();
3434
return this._animations.slice();
3535
},
36-
getAnimationPlayers: function() {
37-
shared.deprecated('AnimationTimeline.getAnimationPlayers', '2015-03-23', 'Use AnimationTimeline.getAnimations instead.');
38-
return this.getAnimations();
39-
},
4036
_updateAnimationsPromises: function() {
4137
scope.animationsWithPromises = scope.animationsWithPromises.filter(function(animation) {
4238
return animation._updatePromises();

0 commit comments

Comments
 (0)