(style)
| 349 | * @return {string} |
| 350 | */ |
| 351 | export function assertNotDisplay(style) { |
| 352 | // TODO(rcebulko): This calls itself an assert, but doesn't throw an error. |
| 353 | // Should it throw sync? If so, this/below can reduce to |
| 354 | // `return devAssert(style == 'display', DISPLAY_STYLE_MESSAGE);` |
| 355 | if (style === 'display') { |
| 356 | devError('STYLE', DISPLAY_STYLE_MESSAGE); |
| 357 | } |
| 358 | return style; |
| 359 | } |
| 360 | |
| 361 | /** |
| 362 | * Asserts that the styles does not contain the `display` style. |