OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 (function() { | 5 (function() { |
6 /** | 6 /** |
7 * Toggles the display of nodes given the status of their associated controls. | 7 * Toggles the display of nodes given the status of their associated controls. |
8 * | 8 * |
9 * For each node passed to this function, check to see if a toggle has been | 9 * For each node passed to this function, check to see if a toggle has been |
10 * inserted into the node's parent. If yes, change the state of the toggle | 10 * inserted into the node's parent. If yes, change the state of the toggle |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 }; | 78 }; |
79 item.insertBefore(a, item.firstChild); | 79 item.insertBefore(a, item.firstChild); |
80 toggleList(item.getElementsByTagName('ul')); | 80 toggleList(item.getElementsByTagName('ul')); |
81 } | 81 } |
82 } | 82 } |
83 if (selectedNode) { | 83 if (selectedNode) { |
84 revealAncestor(selectedNode); | 84 revealAncestor(selectedNode); |
85 } | 85 } |
86 }; | 86 }; |
87 | 87 |
88 window.initSidebar = initSidebar; | 88 initSidebar(); |
89 })() | 89 })() |
OLD | NEW |