LearnNewsExamplesServices
Frontmatter
id310
titlecore.Base: instance config oder
stateClosed
labels
enhancementstale
assignees[]
createdAtMar 18, 2020, 9:44 AM
updatedAtSep 28, 2024, 4:32 AM
githubUrlhttps://github.com/neomjs/neo/issues/310
authortobiu
commentsCount3
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtSep 28, 2024, 4:32 AM

core.Base: instance config oder

Closed v7.9.1/archive-v7-9-1-chunk-1 enhancementstale
tobiu
tobiu commented on Mar 18, 2020, 9:44 AM

pondering ticket.

after removing the afterSetQueue based logic, the instance configs get applied by dependency.

this makes it harder to read instances logged into the dev tools console.

we could try sorting the keys manually onConstructed (className, ntype, chronological).

IMPORTANT: this is only meant to happen in dev mode, not for the dist versions

tobiu added the enhancement label on Mar 18, 2020, 9:44 AM
tobiu
tobiu Mar 18, 2020, 11:24 AM

something like this might work, but instead of returning a copy modifying the real object (this). we should also honor non enumerable objects, symbols(?).

function sortObject(obj) {
  return Object.keys(obj)
    .sort().reduce((a, v) => {
    a[v] = obj[v];
    return a; }, {});
}

@github-actions - 2024-09-14T02:27:51Z

This issue is stale because it has been open for 90 days with no activity.

  • 2024-09-14T02:27:51Z @github-actions added the stale label

@github-actions - 2024-09-28T02:32:05Z

This issue was closed because it has been inactive for 14 days since being marked as stale.

  • 2024-09-28T02:32:06Z @github-actions closed this issue