Skip to content

Commit f27e3aa

Browse files
committed
Move the specific else if clause up
1 parent 251d6c3 commit f27e3aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/renderers/dom/shared/ReactDOMComponent.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -860,15 +860,15 @@ ReactDOMComponent.Mixin = {
860860
// listener (e.g., onClick={null})
861861
deleteListener(this, propKey);
862862
}
863-
} else if (
864-
DOMProperty.properties[propKey] ||
865-
DOMProperty.isCustomAttribute(propKey)) {
866-
DOMPropertyOperations.deleteValueForProperty(getNode(this), propKey);
867863
} else if (this._namespaceURI === DOMNamespaces.svg) {
868864
DOMPropertyOperations.deleteValueForSVGAttribute(
869865
getNode(this),
870866
propKey
871867
);
868+
} else if (
869+
DOMProperty.properties[propKey] ||
870+
DOMProperty.isCustomAttribute(propKey)) {
871+
DOMPropertyOperations.deleteValueForProperty(getNode(this), propKey);
872872
}
873873
}
874874
for (propKey in nextProps) {

0 commit comments

Comments
 (0)