Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Unified Diff: tracing/tracing/ui/base/container_that_decorates_its_children.html

Issue 2776653002: [ESLint] Fix violations when enabling curly rule in eslint. (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tracing/tracing/ui/base/column_chart_test.html ('k') | tracing/tracing/ui/base/deep_utils.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/ui/base/container_that_decorates_its_children.html
diff --git a/tracing/tracing/ui/base/container_that_decorates_its_children.html b/tracing/tracing/ui/base/container_that_decorates_its_children.html
index f6fa6968d117fc912955c4c8c6b41453f50ae32e..9e72248f0d11f2ba78fdd7739aaa1be84f565fcf 100644
--- a/tracing/tracing/ui/base/container_that_decorates_its_children.html
+++ b/tracing/tracing/ui/base/container_that_decorates_its_children.html
@@ -55,15 +55,17 @@ tr.exportTo('tr.ui.b', function() {
},
onSetTextContent_: function(textContent) {
- if (textContent !== '')
+ if (textContent !== '') {
throw new Error('textContent can only be set to \'\'.');
+ }
this.clear();
},
clear: function() {
- while (Polymer.dom(this).lastChild)
+ while (Polymer.dom(this).lastChild) {
HTMLDivElement.prototype.removeChild.call(
this, Polymer.dom(this).lastChild);
+ }
this.didMutate_(this.observer_.takeRecords());
},
@@ -72,8 +74,9 @@ tr.exportTo('tr.ui.b', function() {
for (var i = 0; i < records.length; i++) {
var addedNodes = records[i].addedNodes;
if (addedNodes) {
- for (var j = 0; j < addedNodes.length; j++)
+ for (var j = 0; j < addedNodes.length; j++) {
this.decorateChild_(addedNodes[j]);
+ }
}
var removedNodes = records[i].removedNodes;
if (removedNodes) {
« no previous file with comments | « tracing/tracing/ui/base/column_chart_test.html ('k') | tracing/tracing/ui/base/deep_utils.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698