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

Cleanup and small improvements #132

Merged
merged 4 commits into from
Apr 20, 2017
Merged

Cleanup and small improvements #132

merged 4 commits into from
Apr 20, 2017

Conversation

nchevobbe
Copy link
Member

  • Remove unnecessary createFactory call
  • Optimize getProps function
  • Optimize PropRep function by not adding element for delimiter when we don't need it

I think the changes are pretty small and have the same goal so I grouped them in this PR.
Feel free to ask me to split this up if you find that each commit deserve its own PR.

Copy link
Member

@juliandescottes juliandescottes left a comment

Choose a reason for hiding this comment

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

Looks good to me!

src/reps/grip.js Outdated
});
delete propRepProps.objectLink;
propsArray.push(PropRep(propRepProps));
objectLink: null,
Copy link
Member

Choose a reason for hiding this comment

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

nit: this serves the same purpose as the title: undefined two lines above, right? Maybe group them together and use either null or undefined for both of them?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, good catch

@nchevobbe nchevobbe merged commit 455e5a9 into master Apr 20, 2017
@nchevobbe nchevobbe deleted the faster branch April 20, 2017 07:55
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.

2 participants