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 cr.define('chrome.sync.events_tab', function() { | 5 cr.define('chrome.sync.events_tab', function() { |
6 'use strict'; | 6 'use strict'; |
7 | 7 |
8 function toggleDisplay(event) { | 8 function toggleDisplay(event) { |
9 var originatingButton = event.target; | 9 var originatingButton = event.target; |
10 if (originatingButton.className != 'toggle-button') { | 10 if (originatingButton.className != 'toggle-button') { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 }); | 42 }); |
43 } | 43 } |
44 | 44 |
45 return { | 45 return { |
46 onLoad: onLoad | 46 onLoad: onLoad |
47 }; | 47 }; |
48 }); | 48 }); |
49 | 49 |
50 document.addEventListener( | 50 document.addEventListener( |
51 'DOMContentLoaded', chrome.sync.events_tab.onLoad, false); | 51 'DOMContentLoaded', chrome.sync.events_tab.onLoad, false); |
OLD | NEW |