Revert "DEV: Wrap Ember.run.debounce. (#11352)" (#11465)

This reverts commit 8b426431a4.
This commit is contained in:
Roman Rizzi
2020-12-10 16:48:25 -03:00
committed by GitHub
parent b24a77ff91
commit aa0d4ea764
50 changed files with 354 additions and 518 deletions
@@ -3,7 +3,14 @@ import PluginApiMixin, {
applyContentPluginApiCallbacks,
applyOnChangePluginApiCallbacks,
} from "select-kit/mixins/plugin-api";
import { bind, cancel, next, schedule, throttle } from "@ember/runloop";
import {
bind,
cancel,
debounce,
next,
schedule,
throttle,
} from "@ember/runloop";
import { isEmpty, isNone, isPresent } from "@ember/utils";
import Component from "@ember/component";
import I18n from "I18n";
@@ -12,7 +19,6 @@ import { Promise } from "rsvp";
import UtilsMixin from "select-kit/mixins/utils";
import { createPopper } from "@popperjs/core";
import deprecated from "discourse-common/lib/deprecated";
import discourseDebounce from "discourse-common/lib/debounce";
import { guidFor } from "@ember/object/internals";
import { makeArray } from "discourse-common/lib/helpers";
@@ -380,7 +386,7 @@ export default Component.extend(
cancel(this._searchPromise);
}
discourseDebounce(this, this._debouncedInput, event.target.value, 200);
debounce(this, this._debouncedInput, event.target.value, 200);
},
_debouncedInput(filter) {