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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 // Automatically trigger a refresh the first time this tab is selected. | 210 // Automatically trigger a refresh the first time this tab is selected. |
211 $('sync-browser-tab').addEventListener('selectedChange', function f(e) { | 211 $('sync-browser-tab').addEventListener('selectedChange', function f(e) { |
212 if (this.selected) { | 212 if (this.selected) { |
213 $('sync-browser-tab').removeEventListener('selectedChange', f); | 213 $('sync-browser-tab').removeEventListener('selectedChange', f); |
214 refresh(); | 214 refresh(); |
215 } | 215 } |
216 }); | 216 }); |
217 }); | 217 }); |
218 | 218 |
219 })(); | 219 })(); |
OLD | NEW |