Move the specific else if clause up
Dan Abramov committed
Dec 25, 2015 at 13:48 UTC
f27e3aa7505e7c33be81d669beec31dcec029c06
1 file changed
+4
-4
src/renderers/dom/shared/ReactDOMComponent.js
+4
-4
@@ -860,15 +860,15 @@ ReactDOMComponent.Mixin = {
860
// listener (e.g., onClick={null})
861
deleteListener(this, propKey);
862
}
863
- } else if (
864
- DOMProperty.properties[propKey] ||
865
- DOMProperty.isCustomAttribute(propKey)) {
866
- DOMPropertyOperations.deleteValueForProperty(getNode(this), propKey);
863
} else if (this._namespaceURI === DOMNamespaces.svg) {
864
DOMPropertyOperations.deleteValueForSVGAttribute(
865
getNode(this),
866
propKey
867
);
868
+ } else if (
869
+ DOMProperty.properties[propKey] ||
870
+ DOMProperty.isCustomAttribute(propKey)) {
871
+ DOMPropertyOperations.deleteValueForProperty(getNode(this), propKey);
872
}
873
}
874
for (propKey in nextProps) {