| OLD | NEW |
| 1 part of client_static; | |
| 2 | |
| 3 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 4 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 5 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 6 | 4 |
| 7 List libraryList; | 5 List libraryList; |
| 8 InputElement searchInput; | 6 InputElement searchInput; |
| 9 DivElement dropdown; | 7 DivElement dropdown; |
| 10 | 8 |
| 11 /** | 9 /** |
| 12 * Update the search drop down based on the current search text. | 10 * Update the search drop down based on the current search text. |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 searchInput = query('#q'); | 347 searchInput = query('#q'); |
| 350 dropdown = query('#drop-down'); | 348 dropdown = query('#drop-down'); |
| 351 | 349 |
| 352 searchInput.on.keyDown.add(handleUpDown); | 350 searchInput.on.keyDown.add(handleUpDown); |
| 353 searchInput.on.keyUp.add(updateDropDown); | 351 searchInput.on.keyUp.add(updateDropDown); |
| 354 searchInput.on.change.add(updateDropDown); | 352 searchInput.on.change.add(updateDropDown); |
| 355 searchInput.on.reset.add(updateDropDown); | 353 searchInput.on.reset.add(updateDropDown); |
| 356 searchInput.on.focus.add((event) => showDropDown()); | 354 searchInput.on.focus.add((event) => showDropDown()); |
| 357 searchInput.on.blur.add((event) => hideDropDown()); | 355 searchInput.on.blur.add((event) => hideDropDown()); |
| 358 } | 356 } |
| OLD | NEW |