Skip to content

Commit 3e5283f

Browse files
author
Guillaume Chau
committed
chore: v2.0.0-beta.5
1 parent 971381c commit 3e5283f

File tree

4 files changed

+24
-18
lines changed

4 files changed

+24
-18
lines changed

dist/vue-meteor-tracker.esm.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1734,7 +1734,7 @@ var index = {
17341734
return _this.$data.$meteor.subs;
17351735
},
17361736
enumerable: true,
1737-
configurable: true
1737+
configurable: false
17381738
});
17391739
proxyData.call(this);
17401740
}
@@ -1929,13 +1929,16 @@ var index = {
19291929
},
19301930
$stopMeteor: function $stopMeteor() {
19311931
// Stop all reactivity when view is destroyed.
1932-
this._trackerHandles.forEach(function (tracker) {
1933-
try {
1934-
tracker.stop();
1935-
} catch (e) {
1936-
if (Meteor.isDevelopment) console.error(e, tracker);
1937-
}
1938-
});
1932+
if (Array.isArray(this._trackerHandles)) {
1933+
// sometimes this._trackerHandles is null and we want skip this step
1934+
this._trackerHandles.forEach(function (tracker) {
1935+
try {
1936+
tracker.stop();
1937+
} catch (e) {
1938+
if (Meteor.isDevelopment) console.error(e, tracker);
1939+
}
1940+
});
1941+
}
19391942
this._trackerHandles = null;
19401943
this._meteorActive = false;
19411944
},

0 commit comments

Comments
 (0)