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
|
inject: Ember.inject.controller
|
||||||
},
|
},
|
||||||
"@ember/debug": {
|
"@ember/debug": {
|
||||||
isTesting: () => Ember.testing,
|
|
||||||
warn: Ember.warn
|
warn: Ember.warn
|
||||||
},
|
},
|
||||||
"@ember/object": {
|
"@ember/object": {
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import EmberObject from "@ember/object";
|
import EmberObject from "@ember/object";
|
||||||
import { isTesting } from "@ember/debug";
|
import Ember from "ember";
|
||||||
|
|
||||||
export default EmberObject.create({
|
export default EmberObject.create({
|
||||||
reload() {
|
reload: function() {
|
||||||
if (!isTesting()) {
|
if (!Ember.testing) {
|
||||||
location.reload();
|
location.reload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue