Revert "Revert Ember.run refactors"

This reverts commit fcb1ca52f96bdff1a49d558a4ffb18107d8334de.
This commit is contained in:
Robin Ward
2019-10-30 09:48:24 -04:00
parent 8e6ad99e92
commit 8d34f4bbd9
153 changed files with 493 additions and 319 deletions

View File

@ -1,4 +1,5 @@
import EmberObject from "@ember/object";
import { next } from "@ember/runloop";
import Topic from "discourse/models/topic";
import PostStream from "discourse/models/post-stream";
import { Placeholder } from "discourse/lib/posts-with-placeholders";
@ -545,7 +546,7 @@ QUnit.test(
const done = assert.async();
controller.send("deletePost", post);
Ember.run.next(() => {
next(() => {
assert.ok(destroyed, "post was destroyed");
done();
});