@samitouri / QOS-React / commits / 7246659f4d

Consistent method vs function

Sebastian Markbage committed Nov 18, 2016 at 12:20 UTC 7246659f4d8725a34871c94871e835b8b2ce8fa7
1 file changed +5 -3
src/renderers/dom/fiber/ReactDOMFiberComponent.js
+5 -3
@@ -455,11 +455,13 @@ var ReactDOMFiberComponent = {
455
456 // TODO: Use this to keep track of changes to the host context and use this
457 // to determine whether we switch to svg and back.
458 - isNewHostContainer: function(tag : string) {
458 + // TODO: Does this need to check the current namespace? In case these tags
459 + // happen to be valid in some other namespace.
460 + isNewHostContainer(tag : string) {
461 return tag === 'svg' || tag === 'foreignobject';
462 },
463
462 - createElement: function(
464 + createElement(
465 tag : string,
466 props : Object,
467 rootContainerElement : Element
@@ -514,7 +516,7 @@ var ReactDOMFiberComponent = {
516 return domElement;
517 },
518
517 - setInitialProperties: function(
519 + setInitialProperties(
520 domElement : Element,
521 tag : string,
522 props : Object,