Skip to content

Commit

Permalink
fix path animation
Browse files Browse the repository at this point in the history
  • Loading branch information
Trufi committed Jul 13, 2015
1 parent f1f8d69 commit ece93f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/DGEntrance/src/PathAnimation.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ DG.Path.include(!DG.Path.ANIMATION_AVAILABLE ? {} : {
_removeAnimation: function (animationEl) {
this._map.once('zoomstart', function () {
if (animationEl) {
this._path.removeChild(animationEl);
try {
this._path.removeChild(animationEl);
} catch(e) {}
}
this._animationEl = null;
}, this);
Expand Down

0 comments on commit ece93f2

Please sign in to comment.