DEV: Add ember-buffered-proxy import shim (#10438)

Just a bit of 🧹
This commit is contained in:
Jarek Radosz 2020-08-14 17:07:17 +02:00 committed by GitHub
parent 476d26159a
commit a3e2152265
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -16,3 +16,7 @@ define("ember", ["exports"], function(__exports__) {
define("message-bus-client", ["exports"], function(__exports__) { define("message-bus-client", ["exports"], function(__exports__) {
__exports__.default = window.MessageBus; __exports__.default = window.MessageBus;
}); });
define("ember-buffered-proxy/proxy", ["exports"], function(__exports__) {
__exports__.default = window.BufferedProxy;
});

View File

@ -4,7 +4,7 @@ import EmberObjectProxy from "@ember/object/proxy";
import Controller from "@ember/controller"; import Controller from "@ember/controller";
import { ajax } from "discourse/lib/ajax"; import { ajax } from "discourse/lib/ajax";
import ModalFunctionality from "discourse/mixins/modal-functionality"; import ModalFunctionality from "discourse/mixins/modal-functionality";
const BufferedProxy = window.BufferedProxy; // import BufferedProxy from 'ember-buffered-proxy/proxy'; import BufferedProxy from "ember-buffered-proxy/proxy";
import { popupAjaxError } from "discourse/lib/ajax-error"; import { popupAjaxError } from "discourse/lib/ajax-error";
import discourseComputed, { on } from "discourse-common/utils/decorators"; import discourseComputed, { on } from "discourse-common/utils/decorators";

View File

@ -1,8 +1,8 @@
import EmberObjectProxy from "@ember/object/proxy"; import EmberObjectProxy from "@ember/object/proxy";
import Mixin from "@ember/object/mixin"; import Mixin from "@ember/object/mixin";
import { computed } from "@ember/object"; import { computed } from "@ember/object";
import BufferedProxy from "ember-buffered-proxy/proxy";
/* global BufferedProxy: true */
export function bufferedProperty(property) { export function bufferedProperty(property) {
const mixin = { const mixin = {
buffered: computed(property, function() { buffered: computed(property, function() {