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 ///////////////////////////////////////////////////////////////////////////