forked from facebook/react
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds warning for this.state, enchances this.state
This commit changes this.state to this._state so that the user never really touches this._state directly without being warned. It uses ES5 Object.defineProperty for catching the `set` operation. A test is also added for that. Closes facebook#2272
- Loading branch information
Ciro S. Costa
committed
Oct 2, 2014
1 parent
35764c5
commit 3edfedb
Showing
2 changed files
with
63 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters