* @param {boolean} clickable . * @param {string=} opt_msg . * @return {{clickable: boolean, message: (string|undefined)}} .
(clickable, opt_msg)
| 224 | * @return {{clickable: boolean, message: (string|undefined)}} . |
| 225 | */ |
| 226 | function makeResult(clickable, opt_msg) { |
| 227 | var dict = {'clickable': clickable}; |
| 228 | if (opt_msg) |
| 229 | dict['message'] = opt_msg; |
| 230 | return dict; |
| 231 | } |
| 232 | |
| 233 | // get the outermost ancestor of the element. This will be either the document |
| 234 | // or a shadow root. |