summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-08 22:26:31 +0000
committerkmadhusu@chromium.org <kmadhusu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-08 22:26:31 +0000
commitd70133164f9bb8612d0e4586b440de5144f19f13 (patch)
treef8edf4f89b8a1af67b78734da23b8fe159d8d71e /chrome
parent754defc88fd112a9a762f9dde3dd7b046b8752c0 (diff)
downloadchromium_src-d70133164f9bb8612d0e4586b440de5144f19f13.zip
chromium_src-d70133164f9bb8612d0e4586b440de5144f19f13.tar.gz
chromium_src-d70133164f9bb8612d0e4586b440de5144f19f13.tar.bz2
Fix presubmit js style nits.
BUG=122021 TEST=none Review URL: https://chromiumcodereview.appspot.com/10356041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135928 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/resources/sync_internals/about.js6
-rw-r--r--chrome/browser/resources/sync_internals/chrome_sync.js2
-rw-r--r--chrome/browser/resources/sync_internals/notifications.js12
3 files changed, 9 insertions, 11 deletions
diff --git a/chrome/browser/resources/sync_internals/about.js b/chrome/browser/resources/sync_internals/about.js
index d5e62f5..8c83993 100644
--- a/chrome/browser/resources/sync_internals/about.js
+++ b/chrome/browser/resources/sync_internals/about.js
@@ -18,7 +18,7 @@ function highlightIfChanged(node, oldVal, newVal) {
}
}
-(function () {
+(function() {
// Contains the latest snapshot of sync about info.
chrome.sync.aboutInfo = {};
@@ -26,7 +26,7 @@ chrome.sync.aboutInfo = {};
// like_this.
function refreshAboutInfo(aboutInfo) {
chrome.sync.aboutInfo = aboutInfo;
- var aboutInfoDiv = document.getElementById('aboutInfo');
+ var aboutInfoDiv = $('aboutInfo');
jstProcess(new JsEvalContext(aboutInfo), aboutInfoDiv);
}
@@ -38,5 +38,5 @@ function onLoad() {
});
}
-document.addEventListener("DOMContentLoaded", onLoad, false);
+document.addEventListener('DOMContentLoaded', onLoad, false);
})();
diff --git a/chrome/browser/resources/sync_internals/chrome_sync.js b/chrome/browser/resources/sync_internals/chrome_sync.js
index 6e47e5f..4b55afb 100644
--- a/chrome/browser/resources/sync_internals/chrome_sync.js
+++ b/chrome/browser/resources/sync_internals/chrome_sync.js
@@ -94,7 +94,7 @@ chrome.sync.events = {
'onClearServerDataFailed',
'onEncryptedTypesChanged',
'onEncryptionComplete',
- 'onActionableError'
+ 'onActionableError',
],
'transaction': [
diff --git a/chrome/browser/resources/sync_internals/notifications.js b/chrome/browser/resources/sync_internals/notifications.js
index b6e651e..35dd94c 100644
--- a/chrome/browser/resources/sync_internals/notifications.js
+++ b/chrome/browser/resources/sync_internals/notifications.js
@@ -1,14 +1,13 @@
-// 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.
-(function () {
+(function() {
// TODO(akalin): Use table.js.
function updateNotificationsEnabledInfo(notificationsEnabled) {
- var notificationsEnabledInfo =
- document.getElementById('notificationsEnabledInfo');
+ var notificationsEnabledInfo = $('notificationsEnabledInfo');
jstProcess(
new JsEvalContext({ 'notificationsEnabled': notificationsEnabled }),
notificationsEnabledInfo);
@@ -62,8 +61,7 @@ function incrementSessionNotificationCount(changedType) {
}
function updateNotificationInfoTable() {
- var notificationInfoTable =
- document.getElementById('notificationInfo');
+ var notificationInfoTable = $('notificationInfo');
var infos = [];
for (var k in chrome.sync.notifications) {
infos.push(chrome.sync.notifications[k]);
@@ -95,5 +93,5 @@ function onLoad() {
});
}
-document.addEventListener("DOMContentLoaded", onLoad, false);
+document.addEventListener('DOMContentLoaded', onLoad, false);
})();