mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Merge pull request #1310 from plievone/patch-1
Fix hasOwnProperty check typo in mixStaticSpecIntoComponent
This commit is contained in:
commit
7982ba0571
1 file changed
+1
-1
@@ -506,7 +506,7 @@ function mixStaticSpecIntoComponent(ConvenienceConstructor, statics) {
|
||||
for (var name in statics) {
|
||||
var property = statics[name];
|
||||
if (!statics.hasOwnProperty(name)) {
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
|
||||
var isInherited = name in ConvenienceConstructor;
|
||||
|
||||
Reference in new issue
Block a user