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

Revert #680 #681

Merged
merged 1 commit into from
Nov 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions _includes/js/objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ class CustomUser extends Parse.User {
return 5;
}
}
Parse.Object.registerSubclass('_User', CustomUser);
Parse.Object.registerSubclass('CustomUser', CustomUser);
```

In addition to queries, `logIn`, `signUp`, and `current` will return the subclass `CustomUser`.
In addition to queries, `logIn` and `signUp` will return the subclass `CustomUser`.

```javascript
const customUser = new CustomUser({ foo: 'bar' });
Expand All @@ -117,7 +117,7 @@ customUser.signUp().then((user) => {
});
```

`CustomUser.logIn`, `CustomUser.signUp`, and `Customer.current` will return the subclass `CustomUser` (SDK v2.3.0).
`CustomUser.logIn` and `CustomUser.signUp` will return the subclass `CustomUser` (SDK v2.3.0).

## Saving Objects

Expand Down