@samitouri / QOS-React-2 / commits / 97e0926696

Move else if (__DEV__) into two statements

The minification stage doesn't like `else if (__DEV__)`.

Ben Alpert committed Sep 7, 2013 at 14:03 UTC 97e092669653b26131157353518d3e00e3373e7a
1 file changed +4 -2
src/dom/DOMPropertyOperations.js
+4 -2
@@ -147,8 +147,10 @@ var DOMPropertyOperations = {
147 }
148 } else if (DOMProperty.isCustomAttribute(name)) {
149 node.removeAttribute(name);
150 - } else if (__DEV__) {
151 - warnUnknownProperty(name);
150 + } else {
151 + if (__DEV__) {
152 + warnUnknownProperty(name);
153 + }
154 }
155 }
156