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

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

Issue 9316086: Fix JavaScript errors in options2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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/intents_list.js
diff --git a/chrome/browser/resources/options2/intents_list.js b/chrome/browser/resources/options2/intents_list.js
index e2dc21e65414bb42d96bb5d413aed8935e3f8777..bdf99eb09d13c70f160e7441732031ffb171b9d8 100644
--- a/chrome/browser/resources/options2/intents_list.js
+++ b/chrome/browser/resources/options2/intents_list.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.
@@ -237,8 +237,8 @@ cr.define('options', function() {
* Set the currently selected intents node ("intents bubble") index to
* @{code itemIndex}, unselecting any previously selected node first.
* @param {number} itemIndex The index to set as the selected index.
- * TODO: KILL THIS
*/
+ // TODO: KILL THIS
set selectedIndex(itemIndex) {
// Get the list index up front before we change anything.
var index = this.list.getIndexOfListItem(this);
@@ -377,10 +377,10 @@ cr.define('options', function() {
var divTypes = item.ownerDocument.createElement('div');
divTypes.className = 'intents-item-types';
- var text = "";
+ var text = '';
for (var i = 0; i < this.data.types.length; ++i) {
- if (text != "")
- text += ", ";
+ if (text != '')
+ text += ', ';
text += this.data.types[i];
}
divTypes.textContent = text;

Powered by Google App Engine
This is Rietveld 408576698