MCPcopy Create free account

hub / github.com/ampproject/amphtml / functions

Functions18,703 in github.com/ampproject/amphtml

↓ 136 callersMethodremoveEventListener
polyfill removeEventListener.
testing/fake-dom.js:269
↓ 135 callersMethodassign
* @param {string} href
testing/fake-dom.js:485
↓ 131 callersMethodgetVisibilityState
* Returns visibility state configured by the viewer. * See {@link isVisible}. * @return {!VisibilityState_Enum}
src/service/ampdoc-impl.js:726
↓ 128 callersFunctiongetMaskSet
()
third_party/inputmask/inputmask.js:780
↓ 128 callersFunctionw
()
third_party/inputmask/bundle.js:11
↓ 123 callersMethodlayoutCallback
@override
extensions/amp-story/1.0/amp-story.js:1017
↓ 122 callersFunctionexpectContext
(nodeOrContext, spec)
test/unit/core/context/test-node-discover.js:103
↓ 122 callersMethodrenderOutsideViewport
* Subclasses can override this method to opt-out of rendering the element * when it is not currently visible. * Returning a boolean allows or pr
src/base-element.js:515
↓ 120 callersFunctionisExperimentOn
(experimentId)
3p/3p.js:296
↓ 119 callersFunctionwriteScript
(win, url, opt_cb)
3p/3p.js:68
↓ 118 callersFunctionmap
(opt_initial)
src/core/types/object/index.js:21
↓ 117 callersMethodgetRootNode
@override
extensions/amp-subscriptions/0.1/doc-impl.js:29
↓ 117 callersMethodurl
@return {string}
extensions/amp-next-page/1.0/page.js:61
↓ 116 callersMethodgetElementAttribute
* @param {!ElementHandle<!WebElement>} handle * @param {string} attribute * @return {!Promise<string>}
build-system/tasks/e2e/selenium-webdriver-controller.js:340
↓ 115 callersFunctiondispatchCustomEvent
(node, name, opt_data, opt_options)
src/core/dom/index.js:506
↓ 113 callersFunctioncheck
(template, expected, vars, opt_freeze)
extensions/amp-analytics/0.1/test/test-variables.js:52
↓ 113 callersFunctionhasOwn
(obj, key)
src/core/types/object/index.js:37
↓ 113 callersMethodwrite
@override
src/utils/dom-writer.js:252
↓ 112 callersMethodget
* @param {string} hash * @return {null|Promise<T>}
build-system/common/transform-cache.js:34
↓ 111 callersFunctioncreateElement
(doc, tagName, attributes)
extensions/amp-form/0.1/test/test-form-dirtiness.js:18
↓ 110 callersFunctiondevAssert
( shouldBeTruthy, opt_message, opt_1, opt_2, opt_3, opt_4, opt_5, opt_6, opt_7, opt_8, o
src/core/assert/dev.js:40
↓ 109 callersFunctionisArray
(t)
third_party/react-dates/bundle.js:1
↓ 109 callersFunctionregisterServiceBuilder
(win, id, constructor, opt_instantiate)
src/service-helpers.js:87
↓ 106 callersMethodenqueAction
* Enqueues the action with the element. If element has been upgraded and * built, the action is dispatched to the implementation right away.
src/custom-element.js:1828
↓ 104 callersMethodtext
* Drains the response and returns a promise that resolves with the response * text. * @return {!Promise<string>}
src/polyfills/fetch.js:163
↓ 103 callersFunctionpoll
(description, condition, opt_onError, opt_timeout)
testing/iframe.js:460
↓ 103 callersMethodsignal
* Triggers the signal with the specified name on the element. The time is * optional; if not provided, the current time is used. The associated
src/core/data-structures/signals.js:83
↓ 102 callersFunctionsanitize
* Strips unsafe tags and attributes from HTML. * @param {string} inputHtml The HTML to sanitize. * @param {?function(?string): ?string} opt_naiv
third_party/caja/html-sanitizer.js:2453
↓ 101 callersMethodclone
* @return {!UserData}
third_party/subscriptions-project/swg.js:4699
↓ 101 callersMethodmeasure
* Runs the measure operation via vsync. * @param {function():undefined} measurer
src/service/vsync-impl.js:237
↓ 101 callersMethodonLayoutMeasure
@override
extensions/amp-a4a/0.1/amp-a4a.js:649
↓ 100 callersMethodbuildCallback
@override
extensions/amp-story/1.0/amp-story.js:352
↓ 100 callersMethodpromise
* Returns a promise that will resolve after the delay. Optionally, the * resolved value can be provided as opt_result argument. * @param {number
src/service/timer-impl.js:105
↓ 99 callersFunctionremoveElement
(element)
src/core/dom/index.js:96
↓ 99 callersMethodsubscribe
* Subscribes to a state property mutations. * @param {string} key * @param {!Function} listener * @param {boolean=} callToInitialize Wheth
extensions/amp-story/1.0/amp-story-store-service.js:555
↓ 98 callersMethodsignals
* The element's signal tracker. * @return {!./utils/signals.Signals}
src/base-element.js:273
↓ 97 callersMethodcanBind
* Returns true if (tag, property) binding is allowed. * Otherwise, returns false. * NOTE: `tag` and `property` are case-sensitive. * @param {
extensions/amp-bind/0.1/bind-validator.js:79
↓ 96 callersFunctionconstructConsentInfo
( consentState, opt_consentString, opt_consentMetadata, opt_purposeConsents, opt_isDirty, opt_tcfP
extensions/amp-consent/0.1/consent-info.js:296
↓ 96 callersFunctiongetAnalyticsTag
(config = {}, attrs)
extensions/amp-analytics/0.1/test/test-amp-analytics.js:127
↓ 95 callersMethodgetElementRect
@override
extensions/amp-animation/0.1/web-animations.js:1247
↓ 95 callersFunctionyellow
* Formats the text to appear yellow * * @param {*} text * @return {string}
build-system/common/check-package-manager.js:82
↓ 93 callersMethodassertString
* Throws an error if the first argument isn't a string. The string can * be empty. * * For more details see `assert`. * * @param {*} sh
src/utils/log.js:433
↓ 93 callersMethodpostMessage
* @param {JsonObject} data
extensions/amp-viewer-integration/0.1/messaging/messaging.js:75
↓ 92 callersFunctioncreateStoryWithPages
* @param {number} count * @param {Array<string>=} ids * @return {!Array<!Element>}
extensions/amp-story/1.0/test/test-amp-story.js:68
↓ 91 callersFunctioncreateCustomEvent
(win, type, detail, opt_eventInit)
src/utils/event-helper.js:21
↓ 89 callersFunctioncreateIframePromise
(opt_runtimeOff, opt_beforeLayoutCallback)
testing/iframe.js:215
↓ 89 callersMethodhas
* Whether this node has inputs for the specified property. * * @param {IContextProp<?, ?>} prop * @return {boolean}
src/core/context/values.js:172
↓ 88 callersMethodbuildCallback
@override
extensions/amp-story-interactive/0.1/amp-story-interactive-poll.js:60
↓ 88 callersFunctiongetData
(event)
src/utils/event-helper.js:63
↓ 87 callersFunctiongetCookie
(win, name)
src/cookies.js:29
↓ 87 callersMethodwhenSignal
* Returns the promise that's resolved when the signal is triggered. The * resolved value is the time of the signal. * @param {string} name *
src/core/data-structures/signals.js:52
↓ 85 callersMethodtoggle
Toggle the sidebar open or closed
extensions/amp-sidebar/1.0/component.type.js:47
↓ 84 callersFunctionexpectElementHasClass
(target, klasses, expected)
extensions/amp-geo/0.1/test/test-amp-geo.js:107
↓ 84 callersMethodgetElement
* Searches the element that matches the selector within the scope of the * analytics root in relationship to the specified context node. * *
extensions/amp-analytics/0.1/analytics-root.js:181
↓ 84 callersMethodselect
* Performs selection for specified width and DPR. Here, width is the width * in screen pixels and DPR is the device-pixel-ratio or pixel density of
src/core/dom/srcset.js:155
↓ 83 callersMethodbuildCallback
()
extensions/amp-live-list/0.1/test/test-live-list-manager.js:59
↓ 83 callersMethodwhenFirstVisible
* Returns a Promise that only ever resolved when the current * AMP document first becomes visible. * @return {!Promise}
src/service/ampdoc-impl.js:684
↓ 82 callersFunctionregisterServiceBuilderForDoc
( nodeOrDoc, id, constructor, opt_instantiate )
src/service-helpers.js:103
↓ 81 callersMethodadd
* Adds a segment to the animation. Each segment starts at offset (delay) and * runs for a portion of the overall animation (duration). Note that bo
src/utils/animation.js:89
↓ 81 callersMethodlayoutCallback
@override
extensions/amp-a4a/0.1/amp-a4a.js:1349
↓ 81 callersMethodoverrideVisibilityState
* @param {!VisibilityState_Enum} visibilityState * @restricted
src/service/ampdoc-impl.js:559
↓ 80 callersFunctiongetServiceForDoc
(elementOrAmpDoc, id)
src/service-helpers.js:203
↓ 80 callersFunctionisExperimentOn
* Whether the specified experiment is on or off. * @param {!Window} win * @param {string} experimentId * @return {boolean}
third_party/subscriptions-project/swg.js:7614
↓ 80 callersFunctionisLayoutSizeDefined
(layout)
src/core/dom/layout/index.js:108
↓ 80 callersFunctionresolvedCss
(node, opt_normalize)
extensions/amp-animation/0.1/test/test-css-expr-resolve.js:17
↓ 80 callersMethodsetState
* Merges `state` into the current state and immediately triggers an * evaluation unless `skipEval` is false. * @param {!JsonObject} state * @
extensions/amp-bind/0.1/bind-impl.js:235
↓ 79 callersMethodgetSize
* Size of the queue. * @return {number}
src/service/task-queue.js:45
↓ 79 callersFunctionparseQueryString
(queryString)
src/core/types/string/url.js:31
↓ 79 callersFunctiontryParseJson
(json, opt_onFailed)
src/core/types/object/json.js:63
↓ 78 callersMethodsignals
* @return {!../../../src/utils/signals.Signals}
extensions/amp-bind/0.1/bind-impl.js:224
↓ 78 callersMethodvalue
()
build-system/server/new-server/transforms/utilities/lazy.ts:9
↓ 77 callersMethodcreate
* @param {!../api/subscriptions.ButtonOptions|function()} optionsOrCallback * @param {function()=} callback * @return {!Element}
third_party/subscriptions-project/swg.js:8774
↓ 77 callersFunctionisObject
(value)
src/core/types/object/index.js:9
↓ 76 callersMethodassert
* Throws an error if the first argument isn't trueish. * * Supports argument substitution into the message via %s placeholders. * * Throws
src/utils/log.js:388
↓ 76 callersFunctionexpandUrlAsync
(url, opt_bindings, opt_options)
test/unit/test-url-replacements.js:103
↓ 76 callersMethodfetchJson
* Fetches a JSON response. Note this returns the response object, not the * response's JSON. #fetchJson merely sets up the request to accept JSON.
src/service/xhr-impl.js:119
↓ 76 callersFunctioni
(n)
third_party/d3/d3.js:1
↓ 75 callersFunctionred
* Formats the text to appear red * * @param {*} text * @return {string}
build-system/common/check-package-manager.js:55
↓ 75 callersFunctionsetImportantStyles
(element, styles)
src/core/dom/style.js:108
↓ 73 callersMethodcontains
* Whether this analytics root contains the specified node. * * @param {!Node} node * @return {boolean}
extensions/amp-analytics/0.1/analytics-root.js:117
↓ 73 callersFunctioncreateElement
* @param {!Object} env * @param {?Element} container * @param {string} binding * @param {string=} opts.tag Tag name of element (default is <p>). *
extensions/amp-bind/0.1/test/integration/test-bind-impl.js:31
↓ 73 callersMethodnoContentAvailable
* Notifies the parent document of no content available inside embed.
3p/ampcontext.js:322
↓ 73 callersFunctiont
(n)
third_party/d3/d3.js:1
↓ 72 callersFunctionhtml
(strings, ...values)
build-system/server/app-index/html.js:19
↓ 72 callersMethodisObserved
* @param {!Element} target * @return {boolean}
testing/resize-observer-stub.js:28
↓ 71 callersMethodbuildCallback
@override @return {!Promise|undefined}
extensions/amp-a4a/0.1/amp-a4a.js:398
↓ 71 callersMethodconfigure
@override
third_party/subscriptions-project/swg.js:19128
↓ 71 callersFunctionmod
(a, b)
src/core/math.js:63
↓ 71 callersMethodregisterAction
* Registers the action handler for the method with the specified name. * * The handler is only invoked by events with trust equal to or greater
src/base-element.js:690
↓ 70 callersFunctionconstructMetadata
( opt_consentStringType, opt_additionalConsent, opt_gdprApplies, opt_purposeOne, opt_gppSectionId )
extensions/amp-consent/0.1/consent-info.js:324
↓ 70 callersFunctiondone
(targeting)
ads/vendors/pulsepoint.js:53
↓ 70 callersMethodentries
@override
src/form-data-wrapper.js:166
↓ 70 callersMethodlayoutCallback
@override
extensions/amp-list/0.1/amp-list.js:286
↓ 70 callersMethodonPageChange
@override
extensions/amp-story-auto-ads/0.1/algorithm-count-pages.js:49
↓ 69 callersMethodLine
Adds a line to self.lines, applying the indent.
validator/validator_gen_js.py:72
↓ 69 callersMethodType
()
validator/validator.pb.go:491
↓ 69 callersMethodcalc
* Calculates the value of all variable components. * @param {!CssContext} unusedContext * @param {boolean} unusedNormalize * @return {?CssNod
extensions/amp-animation/0.1/parsers/css-expr-ast.js:156
↓ 69 callersFunctioncomputedStyle
(win, el)
src/core/dom/style.js:302
↓ 68 callersMethodappend
* @param {string} name * @param {string|!File} value * @param {string=} opt_filename * @override
src/form-data-wrapper.js:156
↓ 68 callersFunctionapplyFillContent
(element, opt_replacedContent)
src/core/dom/layout/index.js:248
← previousnext →101–200 of 18,703, ranked by callers