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

Unified Diff: third_party/WebKit/Source/devtools/front_end/resources/DOMStorageItemsView.js

Issue 1907263002: DevTools: Fix all outstanding JavaScript style issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove yoda disable. fix throw parens Created 4 years, 8 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
Index: third_party/WebKit/Source/devtools/front_end/resources/DOMStorageItemsView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/resources/DOMStorageItemsView.js b/third_party/WebKit/Source/devtools/front_end/resources/DOMStorageItemsView.js
index c0e84dd882577ff63375ebc42fe4b24d0988db75..5cf67e76f5d7000a19b2379df4e96d7527b9fb4c 100644
--- a/third_party/WebKit/Source/devtools/front_end/resources/DOMStorageItemsView.js
+++ b/third_party/WebKit/Source/devtools/front_end/resources/DOMStorageItemsView.js
@@ -226,13 +226,13 @@ WebInspector.DOMStorageItemsView.prototype = {
_editingCallback: function(editingNode, columnIdentifier, oldText, newText)
{
var domStorage = this.domStorage;
- if ("key" === columnIdentifier) {
+ if (columnIdentifier === "key") {
if (typeof oldText === "string")
domStorage.removeItem(oldText);
- domStorage.setItem(newText, editingNode.data.value || '');
+ domStorage.setItem(newText, editingNode.data.value || "");
this._removeDupes(editingNode);
} else
- domStorage.setItem(editingNode.data.key || '', newText);
+ domStorage.setItem(editingNode.data.key || "", newText);
},
/**

Powered by Google App Engine
This is Rietveld 408576698