Remove deprecation warning for React statics

This commit is contained in:
Marshall Roch
2013-12-04 20:27:19 -08:00
committed by Paul O’Shannessy
parent 1b8bdbe177
commit e3ad088ff3
2 changed files with 2 additions and 7 deletions
+1 -6
View File
@@ -450,12 +450,7 @@ function mixSpecIntoComponent(ConvenienceConstructor, spec) {
if (RESERVED_SPEC_KEYS.hasOwnProperty(name)) {
RESERVED_SPEC_KEYS[name](ConvenienceConstructor, property);
} else if (RESERVED_STATIC_SPEC_KEYS.hasOwnProperty(name)) {
if (__DEV__) {
console.warn(
'createClass(...): `' + name + '` is now a static property and ' +
'should be defined inside "statics".'
);
}
// TODO: deprecate this with a warning
RESERVED_STATIC_SPEC_KEYS[name](ConvenienceConstructor, property);
} else {
// Setup methods on prototype:
@@ -566,7 +566,7 @@ describe('ReactCompositeComponent', function() {
}
});
it('should warn when using deprecated non-static spec keys', function() {
xit('should warn when using deprecated non-static spec keys', function() {
var warn = console.warn;
console.warn = mocks.getMockFunction();
try {