* Returns the global instance of the `AmpDocService` service that can be * used to resolve an ampdoc for any node: either in the single-doc or * shadow-doc environment. * @param {!Window} window * @return {!./service/ampdoc-impl.AmpDocService}
(window)
| 30 | * @return {!./service/ampdoc-impl.AmpDocService} |
| 31 | */ |
| 32 | function ampdocServiceForInternal(window) { |
| 33 | return /** @type {!./service/ampdoc-impl.AmpDocService} */ ( |
| 34 | getService(window, 'ampdoc') |
| 35 | ); |
| 36 | } |
| 37 | |
| 38 | /** |
| 39 | * Returns the AmpDoc for the specified context node. |