Revert "DEV: Fix a deprecated `ember` import (#9903)"
This reverts commit 75f46ca632
.
This unfortunately breaks
`RAILS_ENV=production bin/rake assets:precompile`
I don't think discourse-loader.js is transpiled
This commit is contained in:
parent
ee60488e6a
commit
9841569bba
|
@ -29,7 +29,6 @@ var define, requirejs;
|
|||
inject: Ember.inject.controller
|
||||
},
|
||||
"@ember/debug": {
|
||||
isTesting: () => Ember.testing,
|
||||
warn: Ember.warn
|
||||
},
|
||||
"@ember/object": {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import EmberObject from "@ember/object";
|
||||
import { isTesting } from "@ember/debug";
|
||||
import Ember from "ember";
|
||||
|
||||
export default EmberObject.create({
|
||||
reload() {
|
||||
if (!isTesting()) {
|
||||
reload: function() {
|
||||
if (!Ember.testing) {
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue