Skip to content

Commit

Permalink
Clarify React class constructor comments
Browse files Browse the repository at this point in the history
- The constructor is not always overridden by mocks. Makes viewing this constructor during debugging less confusing.
  • Loading branch information
RochesterinNYC committed Dec 23, 2015
1 parent 4865ddf commit 6ff9644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/isomorphic/classic/class/ReactClass.js
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ var ReactClass = {
*/
createClass: function(spec) {
var Constructor = function(props, context, updater) {
// This constructor is overridden by mocks. The argument is used
// This constructor gets overridden by mocks. The argument is used
// by mocks to assert on what gets mounted.

if (__DEV__) {
Expand Down

0 comments on commit 6ff9644

Please sign in to comment.