| Index: chrome/browser/resources/bluetooth_internals/snackbar.js
|
| diff --git a/chrome/browser/resources/bluetooth_internals/snackbar.js b/chrome/browser/resources/bluetooth_internals/snackbar.js
|
| index 9cca49e23420cdf81f5cd01551ce2acb0a2e3e16..aabab6648e35987feab72afeaeff7742aba38651 100644
|
| --- a/chrome/browser/resources/bluetooth_internals/snackbar.js
|
| +++ b/chrome/browser/resources/bluetooth_internals/snackbar.js
|
| @@ -71,7 +71,8 @@ cr.define('snackbar', function() {
|
| this.actionLink_.textContent = options.actionText || 'Dismiss';
|
|
|
| this.actionLink_.addEventListener('click', function() {
|
| - if (options.action) options.action();
|
| + if (options.action)
|
| + options.action();
|
| this.dismiss();
|
| }.bind(this));
|
| },
|
| @@ -81,8 +82,10 @@ cr.define('snackbar', function() {
|
| */
|
| show: function() {
|
| this.classList.add('open');
|
| - if (Snackbar.hasContentFocus_) this.startTimeout_();
|
| - else this.stopTimeout_();
|
| + if (Snackbar.hasContentFocus_)
|
| + this.startTimeout_();
|
| + else
|
| + this.stopTimeout_();
|
|
|
| document.addEventListener('contentfocus', this.boundStartTimeout_);
|
| document.addEventListener('contentblur', this.boundStopTimeout_);
|
| @@ -213,8 +216,10 @@ cr.define('snackbar', function() {
|
| * dismissing.
|
| */
|
| Snackbar.dismiss = function(clearQueue) {
|
| - if (clearQueue) Snackbar.queue_ = [];
|
| - if (Snackbar.current_) Snackbar.current_.dismiss();
|
| + if (clearQueue)
|
| + Snackbar.queue_ = [];
|
| + if (Snackbar.current_)
|
| + Snackbar.current_.dismiss();
|
| };
|
|
|
|
|
|
|