mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Remove dead code from DOMPropertyOperations (#11740)
This commit is contained in:
committed by
Dan Abramov
parent
f99ecce596
commit
0a2ed64450
@@ -187,11 +187,6 @@ export function setValueForProperty(node, name, value) {
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
if (__DEV__) {
|
||||
var payload = {};
|
||||
payload[name] = value;
|
||||
}
|
||||
}
|
||||
|
||||
export function setValueForAttribute(node, name, value) {
|
||||
@@ -203,11 +198,6 @@ export function setValueForAttribute(node, name, value) {
|
||||
} else {
|
||||
node.setAttribute(name, '' + value);
|
||||
}
|
||||
|
||||
if (__DEV__) {
|
||||
var payload = {};
|
||||
payload[name] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user