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

Unified Diff: chrome/browser/resources/gesture_config.js

Issue 12560002: Change var blah_blah -> blahBlah. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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
Index: chrome/browser/resources/gesture_config.js
diff --git a/chrome/browser/resources/gesture_config.js b/chrome/browser/resources/gesture_config.js
index 7255d714516f42d18ae3c162dfb2a552b4e3b2c6..02ac671d55561800ab899c3e0825cf9db6ec94b0 100644
--- a/chrome/browser/resources/gesture_config.js
+++ b/chrome/browser/resources/gesture_config.js
@@ -461,12 +461,11 @@ function FlingConfig() {
* WebUI instance for configuring gesture.* and overscroll.* preference values
* used by Chrome's gesture recognition system.
*/
-var gesture_config = (function() {
-
+var gesture_config = {
/**
* Build and initialize the gesture configuration form.
*/
- function initialize() {
+ initialize: function() {
var g = GestureConfig();
g.buildAll();
@@ -485,22 +484,17 @@ var gesture_config = (function() {
f.onReset();
c.onReset();
};
- }
+ },
/**
* Handle callback from call to getPreferenceValue.
* @param {string} prefName The name of the requested preference value.
* @param {value} value The current value associated with prefName.
*/
- function getPreferenceValueResult(prefName, value) {
+ getPreferenceValueResult: function(prefName, value) {
prefName = prefName.substring(prefName.indexOf('.') + 1);
$(prefName).value = value;
- }
-
- return {
- initialize: initialize,
- getPreferenceValueResult: getPreferenceValueResult
- };
-})();
+ },
+};
document.addEventListener('DOMContentLoaded', gesture_config.initialize);
« no previous file with comments | « chrome/browser/resources/file_manager/js/photo/gallery.js ('k') | chrome/browser/resources/history/history.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698