Revert Ember.run refactors

This reverts commit 5ca60fcb6b592524086f98279d3e4fd949598343.
This commit is contained in:
Robin Ward
2019-10-29 17:10:47 -04:00
parent cfa5d123a3
commit fcb1ca52f9
153 changed files with 319 additions and 493 deletions

View File

@ -1,5 +1,4 @@
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";
@ -546,7 +545,7 @@ QUnit.test(
const done = assert.async();
controller.send("deletePost", post);
next(() => {
Ember.run.next(() => {
assert.ok(destroyed, "post was destroyed");
done();
});