-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
about getter/setter #9078
Copy link
Copy link
Closed
Labels
invalidIssues and PRs that are invalid.Issues and PRs that are invalid.questionIssues that look for answers.Issues that look for answers.
Metadata
Metadata
Assignees
Labels
invalidIssues and PRs that are invalid.Issues and PRs that are invalid.questionIssues that look for answers.Issues that look for answers.
Room.prototype.mainChannel = { get:function () { return this._mainChannel; }, set:function(value){ this._mainChannel = value; } }it's working all right.but another not:
Player.prototype.user = { get:function () { return this._user; }, set:function (value) { this._user = value } }Here is result when I print "player.user":

I don't konw why.Who can tell me why?Thank you!