From c56db29020b41467dbec7d74ed2dff49b89fdd75 Mon Sep 17 00:00:00 2001 From: Diamond Lewis Date: Mon, 4 Nov 2019 18:16:12 -0600 Subject: [PATCH] Revert #680 Probably should note that all static user functions will support subclassing after the next js release. --- _includes/js/objects.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_includes/js/objects.md b/_includes/js/objects.md index 2174698e8..b24d8b358 100644 --- a/_includes/js/objects.md +++ b/_includes/js/objects.md @@ -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' }); @@ -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