MCPcopy Create free account

hub / github.com/ampproject/amphtml / functions

Functions18,703 in github.com/ampproject/amphtml

↓ 6 callersMethodthen
* Bind handlers for when the last added promise resolves/rejects. * @param {function(T):?} [opt_resolve] * @param {function(?):?} [opt_reject]
src/core/data-structures/promise.js:124
↓ 6 callersFunctiontoInaboxDocument
(html)
build-system/server/app-utils.js:83
↓ 6 callersFunctiontoggleVisibility
(perf, on)
test/unit/test-performance.js:882
↓ 6 callersMethodtokenizeString_
* Takes a string, removes '.', and splits by special characters. * Returns the resulting array of tokens. * @param {string} inputStr * @retur
extensions/amp-autocomplete/0.1/amp-autocomplete.js:891
↓ 6 callersFunctiontr
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 6 callersFunctiontranslate2d
(startX, startY, endX, endY)
extensions/amp-story/1.0/animation-presets-utils.js:18
↓ 6 callersMethodtruncateToMaxItems_
* Truncate the given data to a maximum length of the max-items attribute. * @param {!Array<!JsonObject|string>} data * @return {!Array<!JsonObje
extensions/amp-autocomplete/0.1/amp-autocomplete.js:920
↓ 6 callersFunctionua
(e)
third_party/react-dates/bundle.js:1
↓ 6 callersMethodunlayoutCallback
@override
extensions/amp-ad-network-doubleclick-impl/0.1/amp-ad-network-doubleclick-impl.js:1247
↓ 6 callersFunctionunmountAll
(containerOrContainers, includeSelf = true)
src/core/dom/resource-container-helper.js:42
↓ 6 callersMethodunobserve
()
test/unit/polyfills/test-resize-observer.js:17
↓ 6 callersMethodunobserve
()
test/unit/polyfills/test-intersection-observer.js:36
↓ 6 callersMethodunsubscribe
* @param {!UnlistenDef} handler
extensions/amp-analytics/0.1/visibility-manager.js:173
↓ 6 callersMethodupdateClassAndDispatchEventIfDirtyStateChanged_
* Adds or removes the `amp-form-dirty` class and dispatches a * `FORM_DIRTINESS_CHANGE` event that reflects the current dirtiness state, * when
extensions/amp-form/0.1/form-dirtiness.js:97
↓ 6 callersMethodupdateDateField_
* Assign the provided date value to the given input. * input[type="date"] expects YYYY-MM-DD for setting its value, * so it is special-cased her
extensions/amp-date-picker/0.1/amp-date-picker.js:1548
↓ 6 callersFunctionupdateDocumentVisibility
(doc, visibilityState)
test/unit/test-ampdoc.js:470
↓ 6 callersMethodupdateIsPlaying_
@private
extensions/amp-video/0.1/amp-video.js:808
↓ 6 callersMethodupdateSize
* @param {number|string|undefined} height * @param {number|string|undefined} width * @param {number} iframeHeight * @param {number} iframeWid
extensions/amp-ad/0.1/amp-ad-ui.js:340
↓ 6 callersFunctionupdateTabStatus
* Updates the tabId's extension icon and badge. * * @param {number} tabId ID of a tab. * @param {string} iconPrefix File name prefix of the icon to
validator/js/chromeextension/worker.js:250
↓ 6 callersMethodupdateToPostSelectionState_
* Updates the selected classes on component and option selected. * @param {?Element} selectedOption * @protected
extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js:796
↓ 6 callersMethodupdateTranslateX_
* Set translateX of the element * Only used in updatePositions_, which should be wrapped in mutateElement * @param {Element} element * @param
extensions/amp-image-slider/0.1/amp-image-slider.js:689
↓ 6 callersMethodupdateVisibleCount_
* Updates the number of items visible for the internal carousel based on * the min/max item widths and how much space is available.
extensions/amp-stream-gallery/0.1/amp-stream-gallery.js:572
↓ 6 callersFunctionupgrade
(io)
test/unit/polyfills/test-resize-observer.js:259
↓ 6 callersMethodupgrade
* Upgrades custom elements descendants of root (but not including root). * * When called with an opt_query, it both upgrades and connects the cu
src/polyfills/custom-elements.js:311
↓ 6 callersFunctionupgradePolyfill
(win, installer)
src/polyfills/stubs/intersection-observer-stub.js:113
↓ 6 callersFunctionuseResourcesNotify
()
src/preact/utils.js:9
↓ 6 callersFunctionvalidateCtaMetadata
(metadata, opt_inabox)
extensions/amp-story-auto-ads/0.1/story-ad-ui.js:132
↓ 6 callersFunctionvalidateMediaMetadata
(element, metadata)
src/mediasession-helper.js:122
↓ 6 callersFunctionverifyA4aAnalyticsTriggersWereFired
* @param {!AmpA4A} a4a * @param {!Function} triggerAnalyticsEventSpy * @param {(string|Array<string>)=} additionalEvents
extensions/amp-a4a/0.1/test/test-amp-a4a.js:539
↓ 6 callersFunctionverifyGetAmpAdRenderOutsideViewport
(loadingStrategy, viewportNum)
extensions/amp-ad/0.1/test/test-concurrent-load.js:46
↓ 6 callersFunctionverifyNameFrameRender
* Checks that element is an amp-ad that is rendered via nameframe. * @param {!Element} element * @param {boolean} shouldSandbox
extensions/amp-a4a/0.1/test/test-amp-a4a.js:487
↓ 6 callersMethodverifyRequestMatch
(regex)
testing/helpers/service.js:390
↓ 6 callersFunctionwaitForBodyOpenPromise
(doc)
src/core/dom/index.js:86
↓ 6 callersFunctionwaitForRender
()
extensions/amp-facebook/1.0/test/test-amp-facebook-comments.js:23
↓ 6 callersFunctionwaitForRender
()
extensions/amp-facebook/1.0/test/test-amp-facebook-page.js:23
↓ 6 callersFunctionwaitForServices
(win)
src/render-delaying-services.js:62
↓ 6 callersFunctionwaitNext
(promise)
test/unit/test-runtime.js:365
↓ 6 callersMethodwhenAllMediaElements_
* Applies the specified callback to each media element on the page, after the * media element is loaded. * @param {function(!./media-pool.MediaP
extensions/amp-story/1.0/amp-story-page.js:1063
↓ 6 callersMethodwhenReady
* Returns a promise that will be resolved when the ampdoc's DOM is fully * ready. * @return {!Promise}
src/service/ampdoc-impl.js:522
↓ 6 callersFunctionwhenUpgraded
* Returns the upgraded imperative API object, once Preact has actually mounted. * * This technically works with both Bento and Legacy components, re
test/unit/preact/test-base-element-runtime.js:27
↓ 6 callersFunctionwork
(d)
test/unit/test-3p.js:245
↓ 6 callersMethodww_
* Helper for invoking a method on web worker. * @param {string} method * @param {!Array=} opt_args * @return {!Promise}
extensions/amp-bind/0.1/bind-impl.js:1602
↓ 6 callersFunctionx
(t)
third_party/d3-geo-projection/d3-geo-projection.js:1
↓ 6 callersFunctionxe
(e,t,n,r,i)
examples/amp-script/vue-todomvc.js:7
↓ 6 callersFunctionxu
(n)
third_party/d3/d3.js:2
↓ 5 callersFunction$n
(e)
third_party/react-dates/bundle.js:1
↓ 5 callersFunctionAmpState
(id, state)
build-system/server/app-index/amphtml-helpers.js:27
↓ 5 callersFunctionB
(a)
third_party/closure-library/sha384-generated.js:49
↓ 5 callersFunctionIe
(e,a,t)
third_party/react-dates/bundle.js:1
↓ 5 callersFunctionImportModuleName
(module_name)
validator/validator_gen_js.py:680
↓ 5 callersFunctionIn
(n)
third_party/d3/d3.js:1
↓ 5 callersFunctionKe
(n,t,e,r)
third_party/d3/d3.js:2
↓ 5 callersFunctionMe
(e,a)
third_party/react-dates/bundle.js:1
↓ 5 callersFunctionN
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 5 callersMethodPopIndent
Pops a particular indent from the stack, reverting to the previous.
validator/validator_gen_js.py:68
↓ 5 callersMethodPushIndent
Pushes a particular indent onto the stack.
validator/validator_gen_js.py:64
↓ 5 callersFunctionRr
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 5 callersFunctionS
()
third_party/d3/d3.js:1
↓ 5 callersFunctionTi
(n)
third_party/d3/d3.js:2
↓ 5 callersFunctionTr
(e,t)
examples/amp-script/vue-todomvc.js:7
↓ 5 callersFunctionUnderscoreToCamelCase
Helper function which converts under_score names to camelCase. In proto buffers, fields have under_scores. In Javascript, fields have camelCase.
validator/validator_gen_js.py:25
↓ 5 callersFunctionWu
(n,t,e)
third_party/d3/d3.js:3
↓ 5 callersFunctionZt
(n,t,e,r)
third_party/d3/d3.js:1
↓ 5 callersFunctiona2aSuccess
(ampParent)
test/unit/test-alp-handler.js:85
↓ 5 callersFunctionactivateControlsBy
(page, name, tapOrHover)
examples/visual-tests/amp-video-docking/amp-video-docking.js:37
↓ 5 callersFunctionaddAction
(context, target, event, actionStr)
extensions/amp-gwd-animation/0.1/amp-gwd-animation.js:261
↓ 5 callersMethodaddGlobalTarget
* Registers the action target that will receive all designated actions. * @param {string} name * @param {ActionHandlerDef} handler
src/service/action-impl.js:391
↓ 5 callersFunctionaddTagToDescriptionEl
(tagName, text)
extensions/amp-story/1.0/semantic-render.js:35
↓ 5 callersFunctionaddUnsafeAllowAutoplay
(iframe)
src/iframe-video.js:131
↓ 5 callersFunctionadplugg
(global, data)
ads/vendors/adplugg.js:10
↓ 5 callersMethodadvance
* Moves the current index forward/backwards by a given delta and scrolls * the new index into view. There are a few cases where this behaves * d
extensions/amp-base-carousel/0.1/carousel.js:382
↓ 5 callersMethodallowParentPostMessage_
* @return {boolean} whether parent post messages are allowed. * * <p>Parent post messages are only allowed for ads. * * @private
extensions/amp-analytics/0.1/amp-analytics.js:264
↓ 5 callersMethodampInitComplete
@override
src/service/resources-impl.js:550
↓ 5 callersMethodanalyticsEvent_
* @param {string} eventType * @private
extensions/amp-access/0.1/amp-access-source.js:264
↓ 5 callersMethodanimateBlur_
* Animate background transition. * @private * @param {?Element} fillElement
extensions/amp-story/1.0/background-blur.js:200
↓ 5 callersFunctionapplyBreakpointClassname
(element, width, breakpoints)
extensions/amp-video-docking/0.1/breakpoints.js:9
↓ 5 callersMethodarrayBuffer
* Drains the response and returns a promise that resolves with the response * ArrayBuffer. * @return {!Promise<!ArrayBuffer>}
src/polyfills/fetch.js:182
↓ 5 callersMethodassertReady_
@private
src/service/history-impl.js:658
↓ 5 callersFunctionassertType_
* Asserts types, backbone of `assertNumber`, `assertString`, etc. * * It understands array-based "id"-contracted messages. * * Otherwise creates a
src/core/assert/base.js:93
↓ 5 callersFunctionassignAdUrlToError
(error, adUrl)
extensions/amp-a4a/0.1/amp-a4a.js:2560
↓ 5 callersMethodattrs
* Returns an array of attributes. Each attribute has two fields: name and * value. Name is always lower-case, value is the case from the original
validator/js/engine/htmlparser-interface.js:269
↓ 5 callersMethodboundX_
* Returns the X position within the allowed range with possible extent. * @param {number} x * @param {boolean} allowExtent * @return {number}
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:670
↓ 5 callersMethodboundY_
* Returns the Y position within the allowed range with possible extent. * @param {number} y * @param {boolean} allowExtent * @return {number}
extensions/amp-pan-zoom/0.1/amp-pan-zoom.js:683
↓ 5 callersMethodbuildCallback
@override
extensions/amp-list/0.1/amp-list.js:212
↓ 5 callersMethodbuildCallback
@override
extensions/amp-script/0.1/amp-script.js:155
↓ 5 callersMethodbuildOrScheduleBuildForResource_
* Builds the element if ready to be built, otherwise adds it to pending * resources. * @param {!Resource} resource * @param {boolean=} checkF
src/service/resources-impl.js:351
↓ 5 callersFunctionc
()
third_party/react-dates/bundle.js:1
↓ 5 callersMethodcallback
(event)
third_party/subscriptions-project/swg.js:15440
↓ 5 callersMethodcanAnimate
* Whether the runtime is allowed to animate at this time. * @param {!Node} contextNode * @return {boolean}
src/service/vsync-impl.js:263
↓ 5 callersMethodcancel
@public
extensions/amp-video-docking/0.1/timeout.js:30
↓ 5 callersMethodcancel
()
extensions/amp-animation/0.1/runners/animation-runner.js:69
↓ 5 callersMethodcheck
* @return {?PageConfig}
third_party/subscriptions-project/config.js:783
↓ 5 callersFunctioncheckCorsUrl
(url)
src/url.js:617
↓ 5 callersFunctionchildElement
(parent, callback)
src/core/dom/query.js:197
↓ 5 callersFunctionchromeSupportsPaymentHandler
* @return {boolean} true if this version of Chrome supports PaymentHandler.
third_party/subscriptions-project/swg.js:15948
↓ 5 callersFunctionclearOptionalTail
(buffer)
third_party/inputmask/inputmask.js:2297
↓ 5 callersFunctioncloneIfNecessary
(e,r)
third_party/react-dates/bundle.js:1
↓ 5 callersFunctioncn
(t,n)
third_party/d3-geo-projection/d3-geo-projection.js:1
↓ 5 callersMethodcollapse
* @param {string|undefined} section
src/bento/components/bento-accordion/1.0/component.type.js:119
↓ 5 callersMethodcollapse_
* Collapse any expanded item inside the mega menu. * @return {?Element} the item that was previously expanded, if any. * @private
extensions/amp-mega-menu/0.1/amp-mega-menu.js:355
← previousnext →2,701–2,800 of 18,703, ranked by callers