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

Unified Diff: ui/webui/resources/js/cr/ui/repeating_button.js

Issue 2603443002: Clang format JS: Disallow single line functions, conditionals, loops, and switch statements (Closed)
Patch Set: update c/b/r/ as well Created 4 years 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
« no previous file with comments | « ui/webui/resources/js/cr/ui/page_manager/page_manager.js ('k') | ui/webui/resources/js/cr/ui/splitter.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/js/cr/ui/repeating_button.js
diff --git a/ui/webui/resources/js/cr/ui/repeating_button.js b/ui/webui/resources/js/cr/ui/repeating_button.js
index 26124fd93385506d20d4daf263753576b94d8c29..d125afdeb95ceb3afb20b03234fe26e7a0711d9e 100644
--- a/ui/webui/resources/js/cr/ui/repeating_button.js
+++ b/ui/webui/resources/js/cr/ui/repeating_button.js
@@ -115,7 +115,9 @@ cr.define('cr.ui', function() {
* @param {!Event} e The triggered event.
* @private
*/
- buttonUp_: function(e) { this.clearTimeout_(); },
+ buttonUp_: function(e) {
+ this.clearTimeout_();
+ },
/**
* Resets the interval callback.
@@ -144,25 +146,33 @@ cr.define('cr.ui', function() {
* Getter for the initial delay before repeating.
* @type {number} The delay in milliseconds.
*/
- get repeatDelay() { return this.holdDelayTime_; },
+ get repeatDelay() {
+ return this.holdDelayTime_;
+ },
/**
* Setter for the initial delay before repeating.
* @type {number} The delay in milliseconds.
*/
- set repeatDelay(delay) { this.holdDelayTime_ = delay; },
+ set repeatDelay(delay) {
+ this.holdDelayTime_ = delay;
+ },
/**
* Getter for the repeat interval.
* @type {number} The repeat interval in milliseconds.
*/
- get repeatInterval() { return this.holdRepeatIntervalTime_; },
+ get repeatInterval() {
+ return this.holdRepeatIntervalTime_;
+ },
/**
* Setter for the repeat interval.
* @type {number} The interval in milliseconds.
*/
- set repeatInterval(delay) { this.holdRepeatIntervalTime_ = delay; }
+ set repeatInterval(delay) {
+ this.holdRepeatIntervalTime_ = delay;
+ }
};
return {RepeatingButton: RepeatingButton};
« no previous file with comments | « ui/webui/resources/js/cr/ui/page_manager/page_manager.js ('k') | ui/webui/resources/js/cr/ui/splitter.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698