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

Unified Diff: chrome/browser/resources/options2/certificate_tree.js

Issue 9316086: Fix JavaScript errors in options2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use list join Created 8 years, 10 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: chrome/browser/resources/options2/certificate_tree.js
diff --git a/chrome/browser/resources/options2/certificate_tree.js b/chrome/browser/resources/options2/certificate_tree.js
index ee5d0755879578c339339bb7acd09f06be1df017..5be6e117ca9981926675c07ac558188c0d86181f 100644
--- a/chrome/browser/resources/options2/certificate_tree.js
+++ b/chrome/browser/resources/options2/certificate_tree.js
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -27,7 +27,7 @@ cr.define('options', function() {
if (data.untrusted) {
var badge = document.createElement('span');
badge.setAttribute('class', 'certUntrusted');
- badge.textContent = localStrings.getString("badgeCertUntrusted");
+ badge.textContent = localStrings.getString('badgeCertUntrusted');
treeItem.labelElement.insertBefore(
badge, treeItem.labelElement.firstChild);
}
@@ -89,7 +89,7 @@ cr.define('options', function() {
clear: function() {
// Remove all fields without recreating the object since other code
// references it.
- for (var id in this.treeLookup_){
+ for (var id in this.treeLookup_) {
delete this.treeLookup_[id];
James Hawkins 2012/02/09 02:51:52 This should be no-braces.
Tyler Breisacher (Chromium) 2012/02/09 03:04:34 Done.
}
this.textContent = '';

Powered by Google App Engine
This is Rietveld 408576698