MCPcopy Index your code
hub / github.com/ampproject/amphtml / getMathmlJs

Function getMathmlJs

3p/mathml.js:18–22  ·  view source on GitHub ↗

* Get the correct script for the mathml formula. * * Use writeScript: Failed to execute 'write' on 'Document': It isn't possible * to write into a document from an asynchronously-loaded external script unless * it is explicitly opened. * * @param {!Window} global * @param {string} scriptSourc

(global, scriptSource, cb)

Source from the content-addressed store, hash-verified

16 * @param {function(*)} cb
17 */
18function getMathmlJs(global, scriptSource, cb) {
19 writeScript(global, scriptSource, function () {
20 cb(global.MathJax);
21 });
22}
23
24/**
25 * @param {!Window} global

Callers 1

mathmlFunction · 0.85

Calls 2

writeScriptFunction · 0.90
cbFunction · 0.50

Tested by

no test coverage detected