| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // require: cr.js | 5 // require: cr.js |
| 6 // require: cr/ui.js | 6 // require: cr/ui.js |
| 7 // require: cr/ui/tree.js | 7 // require: cr/ui/tree.js |
| 8 | 8 |
| 9 (function() { | 9 (function() { |
| 10 /** | 10 /** |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 // Automatically trigger a refresh the first time this tab is selected. | 224 // Automatically trigger a refresh the first time this tab is selected. |
| 225 $('sync-browser-tab').addEventListener('selectedChange', function f(e) { | 225 $('sync-browser-tab').addEventListener('selectedChange', function f(e) { |
| 226 if (this.selected) { | 226 if (this.selected) { |
| 227 $('sync-browser-tab').removeEventListener('selectedChange', f); | 227 $('sync-browser-tab').removeEventListener('selectedChange', f); |
| 228 refresh(); | 228 refresh(); |
| 229 } | 229 } |
| 230 }); | 230 }); |
| 231 }); | 231 }); |
| 232 | 232 |
| 233 })(); | 233 })(); |
| OLD | NEW |