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

Skip the main set properties logic for the initial properties set #764

Merged
merged 1 commit into from
Nov 10, 2017

Conversation

agubler
Copy link
Member

@agubler agubler commented Nov 9, 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:

Simplify the set properties logic for the initial set properties

Resolves #762

const registeredDiffPropertyNames = this.getDecorator('registeredDiffProperty');
let runReactions = false;
const changedPropertyKeys: string[] = [];
const propertyNames = Object.keys(properties);
Copy link
Member

Choose a reason for hiding this comment

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

just a reminder that on IE11 and any properties that are symbols, they will come back with Object.keys. I don't know if you need symbol safe Object.keys here or not.

Copy link
Member Author

Choose a reason for hiding this comment

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

We already used Object.keys within __setProperties__ to get the property names, so this hasn't really changed (i just hoisted it, so I could share)

@agubler agubler merged commit 74bca36 into dojo:master Nov 10, 2017
@dylans dylans added this to the beta.4 milestone Jan 4, 2018
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.

3 participants