mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:59:50 +08:00
FIX: Unsubscribe seemed to be missing some events (#7762)
This forces an unsubscribe from all events.
This commit is contained in:
parent
13b979cb71
commit
9daba50d48
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user