panel: Remove a bit of duplicated code

The play() method does what we want here.
This commit is contained in:
Jasper St. Pierre 2012-11-27 13:15:50 -05:00
parent 056cfc9dc6
commit 7bd7b53845

View File

@ -132,10 +132,8 @@ const AnimatedIcon = new Lang.Class({
_animationsLoaded: function() { _animationsLoaded: function() {
this._isLoaded = true; this._isLoaded = true;
if (this._isPlaying) { if (this._isPlaying)
this._showFrame(0); this.play();
this._timeoutId = Mainloop.timeout_add(ANIMATED_ICON_UPDATE_TIMEOUT, Lang.bind(this, this._update));
}
}, },
_onDestroy: function() { _onDestroy: function() {