Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx committed Jun 11, 2024
1 parent 1684059 commit 37198f6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ember_debug/adapters/web-extension.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import BasicAdapter from './basic';
import { typeOf } from 'ember-debug/utils/type-check';

import Ember, { ENV } from 'ember-debug/utils/ember';
import { ember } from 'ember-debug/utils/ember';
import { run } from 'ember-debug/utils/ember/runloop';

const { isArray } = Array;
Expand Down Expand Up @@ -105,7 +105,7 @@ export default class extends BasicAdapter {
// adapter later. See GH #1114.
const HAS_ARRAY_PROTOTYPE_EXTENSIONS = (() => {
try {
return ENV.EXTEND_PROTOTYPES.Array === true;
return ember.env.EXTEND_PROTOTYPES.Array === true;
} catch (e) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion ember_debug/utils/ember-object-names.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ try {
emberNames.set(Views.ClassNamesSupport, 'ClassNamesSupport Mixin');
emberNames.set(Views.ChildViewsSupport, 'ChildViewsSupport Mixin');
emberNames.set(Views.ViewStateSupport, 'ViewStateSupport Mixin');
emberNames.set(TargetActionSupport, 'TargetActionSupport Mixin')
emberNames.set(classes.TargetActionSupport, 'TargetActionSupport Mixin')
// this one is not a Mixin, but an .extend({}), which results in a class
emberNames.set(Views.CoreView, 'CoreView');
} catch (e) {
Expand Down
1 change: 0 additions & 1 deletion ember_debug/utils/ember.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ let {
ENV: ENV_,
} = Ember || {};

let getEnv = () => Ember.ENV;
let cacheFor = () => null;

if (!Ember) {
Expand Down
6 changes: 4 additions & 2 deletions ember_debug/vendor/startup-wrapper.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { object } from 'ember-debug/utils/ember';

let Ember;
let guidFor;

Expand Down Expand Up @@ -125,7 +127,7 @@ let EMBER_VERSIONS_SUPPORTED = {{EMBER_VERSIONS_SUPPORTED}};

Ember = requireModule('ember-debug/utils/ember');

if (!Ember.VERSION) {
if (!Ember.ember.VERSION) {
return;
}
// `Ember.Application` load hook triggers before all of Ember is ready.
Expand Down Expand Up @@ -164,7 +166,7 @@ let EMBER_VERSIONS_SUPPORTED = {{EMBER_VERSIONS_SUPPORTED}};

if (message.type === 'app-selected') {
let current = window.EmberInspector._application;
let selected = getApplications().find(app => guidFor(app) === message.applicationId);
let selected = getApplications().find(app => Ember.object.guidFor(app) === message.applicationId);

if (selected && current !== selected && selected.__deprecatedInstance__) {
bootEmberInspector(selected.__deprecatedInstance__);
Expand Down

0 comments on commit 37198f6

Please sign in to comment.