Remove React.autoBind for real

This has been deprecated for a long while now, we should actually remove it.
This commit is contained in:
Paul O'Shannessy
2013-09-03 14:27:00 -07:00
committed by Paul O’Shannessy
parent 406dcbd8da
commit a42fd30fc2
2 changed files with 0 additions and 20 deletions
-1
View File
@@ -37,7 +37,6 @@ var React = {
initializeTouchEvents: function(shouldUseTouch) {
ReactMount.useTouchEvents = shouldUseTouch;
},
autoBind: ReactCompositeComponent.autoBind,
createClass: ReactCompositeComponent.createClass,
constructAndRenderComponent: ReactMount.constructAndRenderComponent,
constructAndRenderComponentByID: ReactMount.constructAndRenderComponentByID,
-19
View File
@@ -967,25 +967,6 @@ var ReactCompositeComponent = {
return componentClass instanceof Function &&
'componentConstructor' in componentClass &&
componentClass.componentConstructor instanceof Function;
},
/**
* TODO: Delete this when all callers have been updated to rely on this
* behavior being the default.
*
* Backwards compatible stub for what is now the default behavior.
* @param {function} method Method to be bound.
* @public
*/
autoBind: function(method) {
if (__DEV__) {
console.warn(
'React.autoBind() is now deprecated. All React component methods ' +
'are auto bound by default, so React.autoBind() is a no-op. It ' +
'will be removed in the next version of React'
);
}
return method;
}
};