FIX: Unsubscribe seemed to be missing some events (#7762)

This forces an unsubscribe from all events.
This commit is contained in:
Robin Ward 2019-06-12 11:48:01 -04:00 committed by Joffrey JAFFEUX
parent 13b979cb71
commit 9daba50d48

View File

@ -178,10 +178,7 @@ QUnit.testDone(function() {
}
});
// attempts to remove any subscribed message bus callback
window.MessageBus.callbacks.forEach(function(callback) {
window.MessageBus.unsubscribe(callback.channel, callback.func);
});
window.MessageBus.unsubscribe("*");
});
// Load ES6 tests