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

Unified Diff: chrome/browser/resources/settings/settings_page/settings_section.js

Issue 2946563002: Run clang-format on .js files in c/b/r/settings (Closed)
Patch Set: dschuyler@ review Created 3 years, 6 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/settings/settings_page/settings_section.js
diff --git a/chrome/browser/resources/settings/settings_page/settings_section.js b/chrome/browser/resources/settings/settings_page/settings_section.js
index a2914618175b8707bcec34d7a8ec5f1b7debbb92..0265b83585fcfc0ce3c29230063a5577937054bb 100644
--- a/chrome/browser/resources/settings/settings_page/settings_section.js
+++ b/chrome/browser/resources/settings/settings_page/settings_section.js
@@ -140,13 +140,17 @@ var SettingsSectionElement = Polymer({
var animation =
this.animateCard_('fixed', startTop, endTop, startHeight, endHeight);
- animation.finished.then(function() {
- this.classList.add('expanded');
- }.bind(this), function() {}).then(function() {
- // Unset these changes whether the animation finished or canceled.
- this.classList.remove('expanding');
- this.style.height = '';
- }.bind(this));
+ animation.finished
+ .then(
+ function() {
+ this.classList.add('expanded');
+ }.bind(this),
+ function() {})
+ .then(function() {
+ // Unset these changes whether the animation finished or canceled.
+ this.classList.remove('expanding');
+ this.style.height = '';
+ }.bind(this));
return animation;
},
@@ -217,13 +221,17 @@ var SettingsSectionElement = Polymer({
this.$.card.style.height = '';
this.$.card.style.top = '';
- animation.finished.then(function() {
- this.classList.remove('expanded');
- }.bind(this), function() {}).then(function() {
- // The card now determines the section's height automatically.
- this.style.height = '';
- this.classList.remove('collapsing');
- }.bind(this));
+ animation.finished
+ .then(
+ function() {
+ this.classList.remove('expanded');
+ }.bind(this),
+ function() {})
+ .then(function() {
+ // The card now determines the section's height automatically.
+ this.style.height = '';
+ this.classList.remove('collapsing');
+ }.bind(this));
return animation;
},
@@ -255,7 +263,7 @@ var SettingsSectionElement = Polymer({
height: endHeight,
};
- var options = /** @type {!KeyframeEffectOptions} */({
+ var options = /** @type {!KeyframeEffectOptions} */ ({
duration: settings.animation.Timing.DURATION,
easing: settings.animation.Timing.EASING,
});

Powered by Google App Engine
This is Rietveld 408576698