Deprecates global use of Discourse.MessageBus

We can use DI for this, which makes it easier for plugins to subscribe
to the message bus.
This commit is contained in:
Robin Ward
2015-03-12 12:12:23 -04:00
parent 9395bbbbea
commit 69851bc6cf
14 changed files with 98 additions and 93 deletions

View File

@ -62,7 +62,7 @@ sinon.config = {
window.assetPath = function() { return null; };
// Stop the message bus so we don't get ajax calls
Discourse.MessageBus.stop();
window.MessageBus.stop();
// Trick JSHint into allow document.write
var d = document;