* @param {!Element|!ShadowRoot|!./service/ampdoc-impl.AmpDoc} elementOrAmpDoc * @return {!Chunks} * @private
(elementOrAmpDoc)
| 33 | * @private |
| 34 | */ |
| 35 | function chunkServiceForDoc(elementOrAmpDoc) { |
| 36 | registerServiceBuilderForDoc(elementOrAmpDoc, 'chunk', Chunks); |
| 37 | return getServiceForDoc(elementOrAmpDoc, 'chunk'); |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Run the given function. For visible documents the function will be |
no test coverage detected