mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
make <hasOwnProperty/> transform correctly
This commit is contained in:
+1
-1
@@ -60,7 +60,7 @@ function visitReactTag(traverse, object, path, state) {
|
||||
'Namespace tags are not supported. ReactJSX is not XML.');
|
||||
}
|
||||
|
||||
var isFallbackTag = FALLBACK_TAGS[nameObject.name];
|
||||
var isFallbackTag = FALLBACK_TAGS.hasOwnProperty(nameObject.name);
|
||||
utils.append(
|
||||
(isFallbackTag ? jsxObjIdent + '.' : '') + (nameObject.name) + '(',
|
||||
state
|
||||
|
||||
Reference in New Issue
Block a user