Remove toJSON
This was temporarily needed since clone on mount introduced a cyclic reference in __DEV__. This reverts that change since we now have descriptors. To avoid a problem where toJSON may collide.
Sebastian Markbage committed
Apr 1, 2014 at 17:07 UTC
b44761135eede0b5b7efb1a516468b0be5609ada
1 file changed
-11
src/core/ReactCompositeComponent.js
-11
@@ -667,17 +667,6 @@ var ReactCompositeComponentMixin = {
667
this._compositeLifeCycleState = null;
668
},
669
670
- /**
671
- * Components in the intermediate state now has cyclic references. To avoid
672
- * breaking JSON serialization we expose a custom JSON format.
673
- * @return {object} JSON compatible representation.
674
- * @internal
675
- * @final
676
- */
677
- toJSON: function() {
678
- return { type: this.type, props: this.props };
679
- },
680
-
670
/**
671
* Checks whether or not this composite component is mounted.
672
* @return {boolean} True if mounted, false otherwise.