Skip to content

Name Known Ember Mixins#1055

Merged
RobbieTheWagner merged 1 commit intoemberjs:masterfrom
patricklx:improve-mixin-names
Nov 15, 2019
Merged

Name Known Ember Mixins#1055
RobbieTheWagner merged 1 commit intoemberjs:masterfrom
patricklx:improve-mixin-names

Conversation

@patricklx
Copy link
Copy Markdown
Collaborator

set the names of known mixins
remove properties set by mixins unless different value
causes them to hide the class with only merged mixins from Object.extend(mix1, mix2)

Comment thread ember_debug/object-inspector.js Outdated
/**
* Add Known Ember Mixins and Classes so we can label them correctly in the inspector
*/
const emberNames = new Map();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE: this is a nitpick but you can instantiate a Map directly from an array. I find it clearer:

const emberNames = new Map([
  [Ember.Evented, 'Evented Mixin']
]);

@patricklx patricklx changed the title Goodby unknown mixins Name Known Ember Mixins Nov 13, 2019
Comment thread ember_debug/object-inspector.js Outdated
* @param value
* @returns {string}
*/
function typeOf(value) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@patricklx shouldn't this not be here, since we merged the typeOf stuff?

remove properties set by mixins unless different value
caused them to hide the class with only merged mixins
from Object.extend(mix1, mix2)
@RobbieTheWagner RobbieTheWagner merged commit 6a250ba into emberjs:master Nov 15, 2019
nummi pushed a commit to nummi/ember-inspector that referenced this pull request Apr 1, 2020
remove properties set by mixins unless different value
caused them to hide the class with only merged mixins
from Object.extend(mix1, mix2)
nummi pushed a commit to nummi/ember-inspector that referenced this pull request Apr 5, 2020
remove properties set by mixins unless different value
caused them to hide the class with only merged mixins
from Object.extend(mix1, mix2)
patricklx added a commit to patricklx/ember-inspector that referenced this pull request Sep 19, 2022
remove properties set by mixins unless different value
caused them to hide the class with only merged mixins
from Object.extend(mix1, mix2)
@patricklx patricklx deleted the improve-mixin-names branch October 22, 2022 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants