Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert Schema.js to ES6 class. #826

Merged
merged 1 commit into from
Mar 4, 2016
Merged

Convert Schema.js to ES6 class. #826

merged 1 commit into from
Mar 4, 2016

Conversation

nlutsenko
Copy link
Contributor

  • Convert to a class
  • Cleanup a tad of code duplication
  • Most importantly - reduce number of instances of Schema that we create.
    this.reloadData() or the old this.reload() no longer returns a new instance, but rather reloads data into the current one.
    A bunch of methods where incosistent because of this, since you could be reading data from an old object or a new object.

@drew-gross
Copy link
Contributor

Better than ES5 classes but not as good as no classes :P

nlutsenko added a commit that referenced this pull request Mar 4, 2016
@nlutsenko nlutsenko merged commit ab11ef1 into master Mar 4, 2016
@nlutsenko nlutsenko deleted the nlutsenko.schema branch March 4, 2016 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants