* Use this to register only the HTML and MathML builders for a function (e.g. * if the function's ParseNode is generated in Parser.js rather than via a * stand-alone handler provided to `defineFunction`).
(_ref2)
| 6243 | */ |
| 6244 | |
| 6245 | function defineFunctionBuilders(_ref2) { |
| 6246 | var type = _ref2.type, |
| 6247 | htmlBuilder = _ref2.htmlBuilder, |
| 6248 | mathmlBuilder = _ref2.mathmlBuilder; |
| 6249 | defineFunction({ |
| 6250 | type: type, |
| 6251 | names: [], |
| 6252 | props: { |
| 6253 | numArgs: 0 |
| 6254 | }, |
| 6255 | handler: function handler() { |
| 6256 | throw new Error('Should never be called.'); |
| 6257 | }, |
| 6258 | htmlBuilder: htmlBuilder, |
| 6259 | mathmlBuilder: mathmlBuilder |
| 6260 | }); |
| 6261 | } // Since the corresponding buildHTML/buildMathML function expects a |
| 6262 | // list of elements, we normalize for different kinds of arguments |
| 6263 | |
| 6264 | var defineFunction_ordargument = function ordargument(arg) { |
no test coverage detected