From 44513fdd830a41208ae85d308ed8ca8fa50657c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Vi=C3=B0ar=20Bjarnason?= Date: Wed, 23 Mar 2016 22:20:30 +0000 Subject: [PATCH 1/3] Stop animation when element is detached --- google-streetview-pano.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/google-streetview-pano.html b/google-streetview-pano.html index 9fa0f7f..642e17f 100644 --- a/google-streetview-pano.html +++ b/google-streetview-pano.html @@ -229,6 +229,14 @@ this.pano.setPov(pov); }, + /** + * Stop the animation when the element is detached + * @method detached + */ + detached: function () { + this.stop(); + }, + /** * Cancel the slow panning animation. * @method stop From aa031545c92795f24965c2edec4d1c7e6632d34d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Vi=C3=B0ar=20Bjarnason?= Date: Wed, 23 Mar 2016 22:25:45 +0000 Subject: [PATCH 2/3] Revert "Stop animation when element is detached" This reverts commit 44513fdd830a41208ae85d308ed8ca8fa50657c6. --- google-streetview-pano.html | 8 -------- 1 file changed, 8 deletions(-) diff --git a/google-streetview-pano.html b/google-streetview-pano.html index 642e17f..9fa0f7f 100644 --- a/google-streetview-pano.html +++ b/google-streetview-pano.html @@ -229,14 +229,6 @@ this.pano.setPov(pov); }, - /** - * Stop the animation when the element is detached - * @method detached - */ - detached: function () { - this.stop(); - }, - /** * Cancel the slow panning animation. * @method stop From 730d1f1ea1a5cb2a619dcc46554dc0c212c17a31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Vi=C3=B0ar=20Bjarnason?= Date: Wed, 23 Mar 2016 22:27:41 +0000 Subject: [PATCH 3/3] Stop animation when element is detached --- google-streetview-pano.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/google-streetview-pano.html b/google-streetview-pano.html index 9fa0f7f..642e17f 100644 --- a/google-streetview-pano.html +++ b/google-streetview-pano.html @@ -229,6 +229,14 @@ this.pano.setPov(pov); }, + /** + * Stop the animation when the element is detached + * @method detached + */ + detached: function () { + this.stop(); + }, + /** * Cancel the slow panning animation. * @method stop