mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 19:29:34 +08:00
Revert Ember.run refactors
This reverts commit 5ca60fcb6b592524086f98279d3e4fd949598343.
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
import { next } from "@ember/runloop";
|
||||
import { moduleForWidget, widgetTest } from "helpers/widget-test";
|
||||
import { createWidget } from "discourse/widgets/widget";
|
||||
import { withPluginApi } from "discourse/lib/plugin-api";
|
||||
@ -160,7 +159,7 @@ widgetTest("widget update with promise", {
|
||||
|
||||
click() {
|
||||
return new Ember.RSVP.Promise(resolve => {
|
||||
next(() => {
|
||||
Ember.run.next(() => {
|
||||
this.state.name = "Robin";
|
||||
resolve();
|
||||
});
|
||||
|
Reference in New Issue
Block a user