| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright 2016 The LUCI Authors. All rights reserved. | 2 Copyright 2016 The LUCI Authors. All rights reserved. |
| 3 Use of this source code is governed under the Apache License, Version 2.0 | 3 Use of this source code is governed under the Apache License, Version 2.0 |
| 4 that can be found in the LICENSE file. | 4 that can be found in the LICENSE file. |
| 5 | 5 |
| 6 Listens for 'error-sk' events that bubble up to the document | 6 Listens for 'error-sk' events that bubble up to the document |
| 7 and displays them. | 7 and displays them. |
| 8 | 8 |
| 9 The 'error-sk' event should have 'detail' of the form: | 9 The 'error-sk' event should have 'detail' of the form: |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 } | 47 } |
| 48 this.$.toast.duration = duration; | 48 this.$.toast.duration = duration; |
| 49 this.$.toast.show(); | 49 this.$.toast.show(); |
| 50 } else { | 50 } else { |
| 51 console.log("Empty message?", e); | 51 console.log("Empty message?", e); |
| 52 } | 52 } |
| 53 }.bind(this)); | 53 }.bind(this)); |
| 54 }, | 54 }, |
| 55 }); | 55 }); |
| 56 </script> | 56 </script> |
| OLD | NEW |