Skip to content
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.

Add support for core properties #659

Merged
merged 6 commits into from
Sep 6, 2017
Merged

Conversation

agubler
Copy link
Member

@agubler agubler commented Sep 6, 2017

Type: feature

The following has been addressed in the PR:

  • There is a related issue
  • All code matches the style guide
  • Unit or Functional tests are included in the PR

Description:

Adds support for coreProperties and processes them before the normally __setProperties__ phase.

Resolves #658

}
}

protected getCoreProperties(properties: any): CoreProperties {
Copy link
Contributor

Choose a reason for hiding this comment

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

do you think this should be double underscored?

Copy link
Member Author

Choose a reason for hiding this comment

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

That's a reasonable suggestion as we do not want people to override this function, even if it is just protected

if (node.coreProperties.bind === undefined) {
node.coreProperties.bind = this;
}
node.coreProperties.defaultRegistry = defaultRegistry;
Copy link
Contributor

Choose a reason for hiding this comment

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

do you think we should make coreProperties a symbol? or bad idea?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure what it would give?

Copy link
Contributor

Choose a reason for hiding this comment

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

i guess it would make it transparent to the end user. but i think we agreed that didn't matter anyway.

@agubler agubler merged commit 5084533 into dojo:master Sep 6, 2017
@dylans dylans added this to the 2017.09 milestone Sep 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants