MCPcopy
hub / github.com/ampproject/amphtml / then

Method then

src/motion.js:178–183  ·  view source on GitHub ↗

* Chains to the motion's promise that will resolve when the motion has * completed or will reject if motion has failed or was interrupted. * @override

(opt_resolve, opt_reject)

Source from the content-addressed store, hash-verified

176 * @override
177 */
178 then(opt_resolve, opt_reject) {
179 if (!opt_resolve && !opt_reject) {
180 return this.promise_;
181 }
182 return this.promise_.then(opt_resolve, opt_reject);
183 }
184
185 /**
186 * Callback for regardless whether the motion succeeds or fails.

Callers 15

thenAlwaysMethod · 0.95
getAmpConfigFunction · 0.45
experiments.jsFile · 0.45
twitterFunction · 0.45
nextTickFunction · 0.45
actionTypeHandlerFunction · 0.45
test-errors.jsFile · 0.45
waitForCarouselLayoutFunction · 0.45
layoutCallbackMethod · 0.45
playMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected