From 6755d5c8cf54356b93202c9410577ed6db07af83 Mon Sep 17 00:00:00 2001 From: Ramy Ben Aroya Date: Thu, 15 Dec 2016 21:17:29 +0200 Subject: [PATCH] fix positionInterval clear. positionInterval is a member of OVVAsset, not OVV --- src/org/openvv/js/OVVAsset.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/org/openvv/js/OVVAsset.js b/src/org/openvv/js/OVVAsset.js index df60fc9..e2077fc 100755 --- a/src/org/openvv/js/OVVAsset.js +++ b/src/org/openvv/js/OVVAsset.js @@ -44,10 +44,6 @@ function OVV() { * @type {OVVAsset} */ this.asset = null; - /** - * The id of the interval responsible for positioning beacons. - */ - this.positionInterval; this.userAgent = window.testOvvConfig && window.testOvvConfig.userAgent ? window.testOvvConfig.userAgent : navigator.userAgent; @@ -1068,7 +1064,7 @@ function OVVAsset(uid, dependencies) { container.parentElement.removeChild(container); } } - clearInterval( window.$ovv.positionInterval ); + clearInterval( this.positionInterval ); window.$ovv.removeAsset(this); }; @@ -1086,6 +1082,11 @@ function OVVAsset(uid, dependencies) { return player; }; + /** + * The id of the interval responsible for positioning beacons. + */ + this.positionInterval; + /////////////////////////////////////////////////////////////////////////// // PRIVATE FUNCTIONS ///////////////////////////////////////////////////////////////////////////