Rename .value to .text or .color where applicable. (#1606)

* Update comment for defineFunction handler.

* Rename .value to .text in all token-style ParseNodes.

* Rename symbolNode's .value to .text.

* Rename color-token's .value to .color.
This commit is contained in:
Ashish Myles
2018-08-13 07:58:46 -04:00
committed by ylemkimon
parent 4e53f9d059
commit 8492a7532b
21 changed files with 146 additions and 151 deletions

View File

@@ -104,13 +104,8 @@ type FunctionDefSpec<NODETYPE: NodeType> = {|
// Properties that control how the functions are parsed.
props: FunctionPropSpec,
// The handler is called to handle these functions and their arguments.
// The function should return an object with the following keys:
// - type: The type of element that this is. This is then used in
// buildHTML/buildMathML to determine which function
// should be called to build this node into a DOM node
// Any other data can be added to the object, which will be passed
// in to the function in buildHTML/buildMathML as `group.value`.
// The handler is called to handle these functions and their arguments and
// returns a `ParseNode`.
handler: ?FunctionHandler<NODETYPE>,
// This function returns an object representing the DOM structure to be