{ "type": "File", "start": 0, "end": 2884, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 114, "column": 0 } }, "program": { "type": "Program", "start": 0, "end": 2884, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 114, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ExportDefaultDeclaration", "start": 34, "end": 2883, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 113, "column": 1 } }, "declaration": { "type": "ClassDeclaration", "start": 49, "end": 2883, "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 113, "column": 1 } }, "id": { "type": "Identifier", "start": 55, "end": 72, "loc": { "start": { "line": 5, "column": 21 }, "end": { "line": 5, "column": 38 }, "identifierName": "NamedEventHandler" }, "name": "NamedEventHandler", "leadingComments": null }, "superClass": null, "body": { "type": "ClassBody", "start": 73, "end": 2883, "loc": { "start": { "line": 5, "column": 39 }, "end": { "line": 113, "column": 1 } }, "body": [ { "type": "ClassMethod", "start": 77, "end": 169, "loc": { "start": { "line": 6, "column": 2 }, "end": { "line": 9, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 77, "end": 88, "loc": { "start": { "line": 6, "column": 2 }, "end": { "line": 6, "column": 13 }, "identifierName": "constructor" }, "name": "constructor" }, "kind": "constructor", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 92, "end": 169, "loc": { "start": { "line": 6, "column": 17 }, "end": { "line": 9, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 98, "end": 129, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 35 } }, "expression": { "type": "AssignmentExpression", "start": 98, "end": 129, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 35 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 98, "end": 117, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 23 } }, "object": { "type": "ThisExpression", "start": 98, "end": 102, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 8 } } }, "property": { "type": "Identifier", "start": 103, "end": 117, "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 23 }, "identifierName": "_eventListener" }, "name": "_eventListener" }, "computed": false }, "right": { "type": "NewExpression", "start": 120, "end": 129, "loc": { "start": { "line": 7, "column": 26 }, "end": { "line": 7, "column": 35 } }, "callee": { "type": "Identifier", "start": 124, "end": 127, "loc": { "start": { "line": 7, "column": 30 }, "end": { "line": 7, "column": 33 }, "identifierName": "Map" }, "name": "Map" }, "arguments": [] } } }, { "type": "ExpressionStatement", "start": 134, "end": 165, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 35 } }, "expression": { "type": "AssignmentExpression", "start": 134, "end": 165, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 35 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 134, "end": 153, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 23 } }, "object": { "type": "ThisExpression", "start": 134, "end": 138, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 8 } } }, "property": { "type": "Identifier", "start": 139, "end": 153, "loc": { "start": { "line": 8, "column": 9 }, "end": { "line": 8, "column": 23 }, "identifierName": "_stateListener" }, "name": "_stateListener" }, "computed": false }, "right": { "type": "NewExpression", "start": 156, "end": 165, "loc": { "start": { "line": 8, "column": 26 }, "end": { "line": 8, "column": 35 } }, "callee": { "type": "Identifier", "start": 160, "end": 163, "loc": { "start": { "line": 8, "column": 30 }, "end": { "line": 8, "column": 33 }, "identifierName": "Map" }, "name": "Map" }, "arguments": [] } } } ], "directives": [], "trailingComments": null }, "trailingComments": [ { "type": "CommentBlock", "value": "*\n * @private\n * Returns all listeners that listen to a specified name.\n *\n * @param {String} name The query event name.\n ", "start": 173, "end": 309, "loc": { "start": { "line": 11, "column": 2 }, "end": { "line": 16, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 312, "end": 571, "loc": { "start": { "line": 17, "column": 2 }, "end": { "line": 27, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 312, "end": 324, "loc": { "start": { "line": 17, "column": 2 }, "end": { "line": 17, "column": 14 }, "identifierName": "_getListener" }, "name": "_getListener", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 326, "end": 330, "loc": { "start": { "line": 17, "column": 16 }, "end": { "line": 17, "column": 20 }, "identifierName": "name" }, "name": "name" } ], "body": { "type": "BlockStatement", "start": 332, "end": 571, "loc": { "start": { "line": 17, "column": 22 }, "end": { "line": 27, "column": 3 } }, "body": [ { "type": "VariableDeclaration", "start": 338, "end": 383, "loc": { "start": { "line": 18, "column": 4 }, "end": { "line": 18, "column": 49 } }, "declarations": [ { "type": "VariableDeclarator", "start": 342, "end": 383, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 49 } }, "id": { "type": "Identifier", "start": 342, "end": 351, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 17 }, "identifierName": "listeners" }, "name": "listeners" }, "init": { "type": "CallExpression", "start": 354, "end": 383, "loc": { "start": { "line": 18, "column": 20 }, "end": { "line": 18, "column": 49 } }, "callee": { "type": "MemberExpression", "start": 354, "end": 377, "loc": { "start": { "line": 18, "column": 20 }, "end": { "line": 18, "column": 43 } }, "object": { "type": "MemberExpression", "start": 354, "end": 373, "loc": { "start": { "line": 18, "column": 20 }, "end": { "line": 18, "column": 39 } }, "object": { "type": "ThisExpression", "start": 354, "end": 358, "loc": { "start": { "line": 18, "column": 20 }, "end": { "line": 18, "column": 24 } } }, "property": { "type": "Identifier", "start": 359, "end": 373, "loc": { "start": { "line": 18, "column": 25 }, "end": { "line": 18, "column": 39 }, "identifierName": "_eventListener" }, "name": "_eventListener" }, "computed": false }, "property": { "type": "Identifier", "start": 374, "end": 377, "loc": { "start": { "line": 18, "column": 40 }, "end": { "line": 18, "column": 43 }, "identifierName": "get" }, "name": "get" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 378, "end": 382, "loc": { "start": { "line": 18, "column": 44 }, "end": { "line": 18, "column": 48 }, "identifierName": "name" }, "name": "name" } ] } } ], "kind": "let" }, { "type": "IfStatement", "start": 388, "end": 546, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 25, "column": 5 } }, "test": { "type": "BinaryExpression", "start": 392, "end": 415, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 31 } }, "left": { "type": "Identifier", "start": 392, "end": 401, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 17 }, "identifierName": "listeners" }, "name": "listeners" }, "operator": "===", "right": { "type": "Identifier", "start": 406, "end": 415, "loc": { "start": { "line": 19, "column": 22 }, "end": { "line": 19, "column": 31 }, "identifierName": "undefined" }, "name": "undefined" } }, "consequent": { "type": "BlockStatement", "start": 417, "end": 546, "loc": { "start": { "line": 19, "column": 33 }, "end": { "line": 25, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 425, "end": 493, "loc": { "start": { "line": 20, "column": 6 }, "end": { "line": 23, "column": 7 } }, "expression": { "type": "AssignmentExpression", "start": 425, "end": 493, "loc": { "start": { "line": 20, "column": 6 }, "end": { "line": 23, "column": 7 } }, "operator": "=", "left": { "type": "Identifier", "start": 425, "end": 434, "loc": { "start": { "line": 20, "column": 6 }, "end": { "line": 20, "column": 15 }, "identifierName": "listeners" }, "name": "listeners" }, "right": { "type": "ObjectExpression", "start": 437, "end": 493, "loc": { "start": { "line": 20, "column": 18 }, "end": { "line": 23, "column": 7 } }, "properties": [ { "type": "ObjectProperty", "start": 447, "end": 462, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 23 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 447, "end": 451, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 12 }, "identifierName": "once" }, "name": "once" }, "value": { "type": "NewExpression", "start": 453, "end": 462, "loc": { "start": { "line": 21, "column": 14 }, "end": { "line": 21, "column": 23 } }, "callee": { "type": "Identifier", "start": 457, "end": 460, "loc": { "start": { "line": 21, "column": 18 }, "end": { "line": 21, "column": 21 }, "identifierName": "Set" }, "name": "Set" }, "arguments": [] } }, { "type": "ObjectProperty", "start": 472, "end": 485, "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 21 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 472, "end": 474, "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 10 }, "identifierName": "on" }, "name": "on" }, "value": { "type": "NewExpression", "start": 476, "end": 485, "loc": { "start": { "line": 22, "column": 12 }, "end": { "line": 22, "column": 21 } }, "callee": { "type": "Identifier", "start": 480, "end": 483, "loc": { "start": { "line": 22, "column": 16 }, "end": { "line": 22, "column": 19 }, "identifierName": "Set" }, "name": "Set" }, "arguments": [] } } ] } } }, { "type": "ExpressionStatement", "start": 500, "end": 540, "loc": { "start": { "line": 24, "column": 6 }, "end": { "line": 24, "column": 46 } }, "expression": { "type": "CallExpression", "start": 500, "end": 540, "loc": { "start": { "line": 24, "column": 6 }, "end": { "line": 24, "column": 46 } }, "callee": { "type": "MemberExpression", "start": 500, "end": 523, "loc": { "start": { "line": 24, "column": 6 }, "end": { "line": 24, "column": 29 } }, "object": { "type": "MemberExpression", "start": 500, "end": 519, "loc": { "start": { "line": 24, "column": 6 }, "end": { "line": 24, "column": 25 } }, "object": { "type": "ThisExpression", "start": 500, "end": 504, "loc": { "start": { "line": 24, "column": 6 }, "end": { "line": 24, "column": 10 } } }, "property": { "type": "Identifier", "start": 505, "end": 519, "loc": { "start": { "line": 24, "column": 11 }, "end": { "line": 24, "column": 25 }, "identifierName": "_eventListener" }, "name": "_eventListener" }, "computed": false }, "property": { "type": "Identifier", "start": 520, "end": 523, "loc": { "start": { "line": 24, "column": 26 }, "end": { "line": 24, "column": 29 }, "identifierName": "set" }, "name": "set" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 524, "end": 528, "loc": { "start": { "line": 24, "column": 30 }, "end": { "line": 24, "column": 34 }, "identifierName": "name" }, "name": "name" }, { "type": "Identifier", "start": 530, "end": 539, "loc": { "start": { "line": 24, "column": 36 }, "end": { "line": 24, "column": 45 }, "identifierName": "listeners" }, "name": "listeners" } ] } } ], "directives": [] }, "alternate": null }, { "type": "ReturnStatement", "start": 551, "end": 567, "loc": { "start": { "line": 26, "column": 4 }, "end": { "line": 26, "column": 20 } }, "argument": { "type": "Identifier", "start": 558, "end": 567, "loc": { "start": { "line": 26, "column": 11 }, "end": { "line": 26, "column": 20 }, "identifierName": "listeners" }, "name": "listeners" } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * @private\n * Returns all listeners that listen to a specified name.\n *\n * @param {String} name The query event name.\n ", "start": 173, "end": 309, "loc": { "start": { "line": 11, "column": 2 }, "end": { "line": 16, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Adds a named event listener. The listener is removed after it has been\n * called once.\n *\n * @param {String} name The event name to listen to.\n * @param {Function} f The function that is executed when the event is fired.\n ", "start": 575, "end": 818, "loc": { "start": { "line": 29, "column": 2 }, "end": { "line": 35, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 821, "end": 911, "loc": { "start": { "line": 36, "column": 2 }, "end": { "line": 39, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 821, "end": 825, "loc": { "start": { "line": 36, "column": 2 }, "end": { "line": 36, "column": 6 }, "identifierName": "once" }, "name": "once", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 827, "end": 831, "loc": { "start": { "line": 36, "column": 8 }, "end": { "line": 36, "column": 12 }, "identifierName": "name" }, "name": "name" }, { "type": "Identifier", "start": 833, "end": 834, "loc": { "start": { "line": 36, "column": 14 }, "end": { "line": 36, "column": 15 }, "identifierName": "f" }, "name": "f" } ], "body": { "type": "BlockStatement", "start": 836, "end": 911, "loc": { "start": { "line": 36, "column": 17 }, "end": { "line": 39, "column": 3 } }, "body": [ { "type": "VariableDeclaration", "start": 842, "end": 881, "loc": { "start": { "line": 37, "column": 4 }, "end": { "line": 37, "column": 43 } }, "declarations": [ { "type": "VariableDeclarator", "start": 846, "end": 881, "loc": { "start": { "line": 37, "column": 8 }, "end": { "line": 37, "column": 43 } }, "id": { "type": "Identifier", "start": 846, "end": 855, "loc": { "start": { "line": 37, "column": 8 }, "end": { "line": 37, "column": 17 }, "identifierName": "listeners" }, "name": "listeners" }, "init": { "type": "CallExpression", "start": 858, "end": 881, "loc": { "start": { "line": 37, "column": 20 }, "end": { "line": 37, "column": 43 } }, "callee": { "type": "MemberExpression", "start": 858, "end": 875, "loc": { "start": { "line": 37, "column": 20 }, "end": { "line": 37, "column": 37 } }, "object": { "type": "ThisExpression", "start": 858, "end": 862, "loc": { "start": { "line": 37, "column": 20 }, "end": { "line": 37, "column": 24 } } }, "property": { "type": "Identifier", "start": 863, "end": 875, "loc": { "start": { "line": 37, "column": 25 }, "end": { "line": 37, "column": 37 }, "identifierName": "_getListener" }, "name": "_getListener" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 876, "end": 880, "loc": { "start": { "line": 37, "column": 38 }, "end": { "line": 37, "column": 42 }, "identifierName": "name" }, "name": "name" } ] } } ], "kind": "let" }, { "type": "ExpressionStatement", "start": 886, "end": 907, "loc": { "start": { "line": 38, "column": 4 }, "end": { "line": 38, "column": 25 } }, "expression": { "type": "CallExpression", "start": 886, "end": 907, "loc": { "start": { "line": 38, "column": 4 }, "end": { "line": 38, "column": 25 } }, "callee": { "type": "MemberExpression", "start": 886, "end": 904, "loc": { "start": { "line": 38, "column": 4 }, "end": { "line": 38, "column": 22 } }, "object": { "type": "MemberExpression", "start": 886, "end": 900, "loc": { "start": { "line": 38, "column": 4 }, "end": { "line": 38, "column": 18 } }, "object": { "type": "Identifier", "start": 886, "end": 895, "loc": { "start": { "line": 38, "column": 4 }, "end": { "line": 38, "column": 13 }, "identifierName": "listeners" }, "name": "listeners" }, "property": { "type": "Identifier", "start": 896, "end": 900, "loc": { "start": { "line": 38, "column": 14 }, "end": { "line": 38, "column": 18 }, "identifierName": "once" }, "name": "once" }, "computed": false }, "property": { "type": "Identifier", "start": 901, "end": 904, "loc": { "start": { "line": 38, "column": 19 }, "end": { "line": 38, "column": 22 }, "identifierName": "add" }, "name": "add" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 905, "end": 906, "loc": { "start": { "line": 38, "column": 23 }, "end": { "line": 38, "column": 24 }, "identifierName": "f" }, "name": "f" } ] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Adds a named event listener. The listener is removed after it has been\n * called once.\n *\n * @param {String} name The event name to listen to.\n * @param {Function} f The function that is executed when the event is fired.\n ", "start": 575, "end": 818, "loc": { "start": { "line": 29, "column": 2 }, "end": { "line": 35, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Adds a named event listener.\n *\n * @param {String} name The event name to listen to.\n * @param {Function} f The function that is executed when the event is fired.\n ", "start": 915, "end": 1098, "loc": { "start": { "line": 41, "column": 2 }, "end": { "line": 46, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 1101, "end": 1187, "loc": { "start": { "line": 47, "column": 2 }, "end": { "line": 50, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 1101, "end": 1103, "loc": { "start": { "line": 47, "column": 2 }, "end": { "line": 47, "column": 4 }, "identifierName": "on" }, "name": "on", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1105, "end": 1109, "loc": { "start": { "line": 47, "column": 6 }, "end": { "line": 47, "column": 10 }, "identifierName": "name" }, "name": "name" }, { "type": "Identifier", "start": 1111, "end": 1112, "loc": { "start": { "line": 47, "column": 12 }, "end": { "line": 47, "column": 13 }, "identifierName": "f" }, "name": "f" } ], "body": { "type": "BlockStatement", "start": 1114, "end": 1187, "loc": { "start": { "line": 47, "column": 15 }, "end": { "line": 50, "column": 3 } }, "body": [ { "type": "VariableDeclaration", "start": 1120, "end": 1159, "loc": { "start": { "line": 48, "column": 4 }, "end": { "line": 48, "column": 43 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1124, "end": 1159, "loc": { "start": { "line": 48, "column": 8 }, "end": { "line": 48, "column": 43 } }, "id": { "type": "Identifier", "start": 1124, "end": 1133, "loc": { "start": { "line": 48, "column": 8 }, "end": { "line": 48, "column": 17 }, "identifierName": "listeners" }, "name": "listeners" }, "init": { "type": "CallExpression", "start": 1136, "end": 1159, "loc": { "start": { "line": 48, "column": 20 }, "end": { "line": 48, "column": 43 } }, "callee": { "type": "MemberExpression", "start": 1136, "end": 1153, "loc": { "start": { "line": 48, "column": 20 }, "end": { "line": 48, "column": 37 } }, "object": { "type": "ThisExpression", "start": 1136, "end": 1140, "loc": { "start": { "line": 48, "column": 20 }, "end": { "line": 48, "column": 24 } } }, "property": { "type": "Identifier", "start": 1141, "end": 1153, "loc": { "start": { "line": 48, "column": 25 }, "end": { "line": 48, "column": 37 }, "identifierName": "_getListener" }, "name": "_getListener" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 1154, "end": 1158, "loc": { "start": { "line": 48, "column": 38 }, "end": { "line": 48, "column": 42 }, "identifierName": "name" }, "name": "name" } ] } } ], "kind": "let" }, { "type": "ExpressionStatement", "start": 1164, "end": 1183, "loc": { "start": { "line": 49, "column": 4 }, "end": { "line": 49, "column": 23 } }, "expression": { "type": "CallExpression", "start": 1164, "end": 1183, "loc": { "start": { "line": 49, "column": 4 }, "end": { "line": 49, "column": 23 } }, "callee": { "type": "MemberExpression", "start": 1164, "end": 1180, "loc": { "start": { "line": 49, "column": 4 }, "end": { "line": 49, "column": 20 } }, "object": { "type": "MemberExpression", "start": 1164, "end": 1176, "loc": { "start": { "line": 49, "column": 4 }, "end": { "line": 49, "column": 16 } }, "object": { "type": "Identifier", "start": 1164, "end": 1173, "loc": { "start": { "line": 49, "column": 4 }, "end": { "line": 49, "column": 13 }, "identifierName": "listeners" }, "name": "listeners" }, "property": { "type": "Identifier", "start": 1174, "end": 1176, "loc": { "start": { "line": 49, "column": 14 }, "end": { "line": 49, "column": 16 }, "identifierName": "on" }, "name": "on" }, "computed": false }, "property": { "type": "Identifier", "start": 1177, "end": 1180, "loc": { "start": { "line": 49, "column": 17 }, "end": { "line": 49, "column": 20 }, "identifierName": "add" }, "name": "add" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 1181, "end": 1182, "loc": { "start": { "line": 49, "column": 21 }, "end": { "line": 49, "column": 22 }, "identifierName": "f" }, "name": "f" } ] } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Adds a named event listener.\n *\n * @param {String} name The event name to listen to.\n * @param {Function} f The function that is executed when the event is fired.\n ", "start": 915, "end": 1098, "loc": { "start": { "line": 41, "column": 2 }, "end": { "line": 46, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * @private\n * Init the saved state for an event name.\n ", "start": 1191, "end": 1259, "loc": { "start": { "line": 52, "column": 2 }, "end": { "line": 55, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 1262, "end": 1549, "loc": { "start": { "line": 56, "column": 2 }, "end": { "line": 66, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 1262, "end": 1280, "loc": { "start": { "line": 56, "column": 2 }, "end": { "line": 56, "column": 20 }, "identifierName": "_initStateListener" }, "name": "_initStateListener", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1282, "end": 1286, "loc": { "start": { "line": 56, "column": 22 }, "end": { "line": 56, "column": 26 }, "identifierName": "name" }, "name": "name" } ], "body": { "type": "BlockStatement", "start": 1288, "end": 1549, "loc": { "start": { "line": 56, "column": 28 }, "end": { "line": 66, "column": 3 } }, "body": [ { "type": "VariableDeclaration", "start": 1294, "end": 1335, "loc": { "start": { "line": 57, "column": 4 }, "end": { "line": 57, "column": 45 } }, "declarations": [ { "type": "VariableDeclarator", "start": 1298, "end": 1335, "loc": { "start": { "line": 57, "column": 8 }, "end": { "line": 57, "column": 45 } }, "id": { "type": "Identifier", "start": 1298, "end": 1303, "loc": { "start": { "line": 57, "column": 8 }, "end": { "line": 57, "column": 13 }, "identifierName": "state" }, "name": "state" }, "init": { "type": "CallExpression", "start": 1306, "end": 1335, "loc": { "start": { "line": 57, "column": 16 }, "end": { "line": 57, "column": 45 } }, "callee": { "type": "MemberExpression", "start": 1306, "end": 1329, "loc": { "start": { "line": 57, "column": 16 }, "end": { "line": 57, "column": 39 } }, "object": { "type": "MemberExpression", "start": 1306, "end": 1325, "loc": { "start": { "line": 57, "column": 16 }, "end": { "line": 57, "column": 35 } }, "object": { "type": "ThisExpression", "start": 1306, "end": 1310, "loc": { "start": { "line": 57, "column": 16 }, "end": { "line": 57, "column": 20 } } }, "property": { "type": "Identifier", "start": 1311, "end": 1325, "loc": { "start": { "line": 57, "column": 21 }, "end": { "line": 57, "column": 35 }, "identifierName": "_stateListener" }, "name": "_stateListener" }, "computed": false }, "property": { "type": "Identifier", "start": 1326, "end": 1329, "loc": { "start": { "line": 57, "column": 36 }, "end": { "line": 57, "column": 39 }, "identifierName": "get" }, "name": "get" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 1330, "end": 1334, "loc": { "start": { "line": 57, "column": 40 }, "end": { "line": 57, "column": 44 }, "identifierName": "name" }, "name": "name" } ] } } ], "kind": "let" }, { "type": "IfStatement", "start": 1340, "end": 1528, "loc": { "start": { "line": 58, "column": 4 }, "end": { "line": 64, "column": 5 } }, "test": { "type": "BinaryExpression", "start": 1344, "end": 1363, "loc": { "start": { "line": 58, "column": 8 }, "end": { "line": 58, "column": 27 } }, "left": { "type": "Identifier", "start": 1344, "end": 1349, "loc": { "start": { "line": 58, "column": 8 }, "end": { "line": 58, "column": 13 }, "identifierName": "state" }, "name": "state" }, "operator": "===", "right": { "type": "Identifier", "start": 1354, "end": 1363, "loc": { "start": { "line": 58, "column": 18 }, "end": { "line": 58, "column": 27 }, "identifierName": "undefined" }, "name": "undefined" } }, "consequent": { "type": "BlockStatement", "start": 1365, "end": 1528, "loc": { "start": { "line": 58, "column": 29 }, "end": { "line": 64, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 1373, "end": 1383, "loc": { "start": { "line": 59, "column": 6 }, "end": { "line": 59, "column": 16 } }, "expression": { "type": "AssignmentExpression", "start": 1373, "end": 1383, "loc": { "start": { "line": 59, "column": 6 }, "end": { "line": 59, "column": 16 } }, "operator": "=", "left": { "type": "Identifier", "start": 1373, "end": 1378, "loc": { "start": { "line": 59, "column": 6 }, "end": { "line": 59, "column": 11 }, "identifierName": "state" }, "name": "state" }, "right": { "type": "ObjectExpression", "start": 1381, "end": 1383, "loc": { "start": { "line": 59, "column": 14 }, "end": { "line": 59, "column": 16 } }, "properties": [] } } }, { "type": "ExpressionStatement", "start": 1390, "end": 1479, "loc": { "start": { "line": 60, "column": 6 }, "end": { "line": 62, "column": 8 } }, "expression": { "type": "AssignmentExpression", "start": 1390, "end": 1479, "loc": { "start": { "line": 60, "column": 6 }, "end": { "line": 62, "column": 8 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1390, "end": 1403, "loc": { "start": { "line": 60, "column": 6 }, "end": { "line": 60, "column": 19 } }, "object": { "type": "Identifier", "start": 1390, "end": 1395, "loc": { "start": { "line": 60, "column": 6 }, "end": { "line": 60, "column": 11 }, "identifierName": "state" }, "name": "state" }, "property": { "type": "Identifier", "start": 1396, "end": 1403, "loc": { "start": { "line": 60, "column": 12 }, "end": { "line": 60, "column": 19 }, "identifierName": "promise" }, "name": "promise" }, "computed": false }, "right": { "type": "NewExpression", "start": 1406, "end": 1479, "loc": { "start": { "line": 60, "column": 22 }, "end": { "line": 62, "column": 8 } }, "callee": { "type": "Identifier", "start": 1410, "end": 1417, "loc": { "start": { "line": 60, "column": 26 }, "end": { "line": 60, "column": 33 }, "identifierName": "Promise" }, "name": "Promise" }, "arguments": [ { "type": "FunctionExpression", "start": 1418, "end": 1478, "loc": { "start": { "line": 60, "column": 34 }, "end": { "line": 62, "column": 7 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1428, "end": 1435, "loc": { "start": { "line": 60, "column": 44 }, "end": { "line": 60, "column": 51 }, "identifierName": "resolve" }, "name": "resolve" } ], "body": { "type": "BlockStatement", "start": 1437, "end": 1478, "loc": { "start": { "line": 60, "column": 53 }, "end": { "line": 62, "column": 7 } }, "body": [ { "type": "ExpressionStatement", "start": 1447, "end": 1470, "loc": { "start": { "line": 61, "column": 8 }, "end": { "line": 61, "column": 31 } }, "expression": { "type": "AssignmentExpression", "start": 1447, "end": 1470, "loc": { "start": { "line": 61, "column": 8 }, "end": { "line": 61, "column": 31 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 1447, "end": 1460, "loc": { "start": { "line": 61, "column": 8 }, "end": { "line": 61, "column": 21 } }, "object": { "type": "Identifier", "start": 1447, "end": 1452, "loc": { "start": { "line": 61, "column": 8 }, "end": { "line": 61, "column": 13 }, "identifierName": "state" }, "name": "state" }, "property": { "type": "Identifier", "start": 1453, "end": 1460, "loc": { "start": { "line": 61, "column": 14 }, "end": { "line": 61, "column": 21 }, "identifierName": "resolve" }, "name": "resolve" }, "computed": false }, "right": { "type": "Identifier", "start": 1463, "end": 1470, "loc": { "start": { "line": 61, "column": 24 }, "end": { "line": 61, "column": 31 }, "identifierName": "resolve" }, "name": "resolve" } } } ], "directives": [] } } ] } } }, { "type": "ExpressionStatement", "start": 1486, "end": 1522, "loc": { "start": { "line": 63, "column": 6 }, "end": { "line": 63, "column": 42 } }, "expression": { "type": "CallExpression", "start": 1486, "end": 1522, "loc": { "start": { "line": 63, "column": 6 }, "end": { "line": 63, "column": 42 } }, "callee": { "type": "MemberExpression", "start": 1486, "end": 1509, "loc": { "start": { "line": 63, "column": 6 }, "end": { "line": 63, "column": 29 } }, "object": { "type": "MemberExpression", "start": 1486, "end": 1505, "loc": { "start": { "line": 63, "column": 6 }, "end": { "line": 63, "column": 25 } }, "object": { "type": "ThisExpression", "start": 1486, "end": 1490, "loc": { "start": { "line": 63, "column": 6 }, "end": { "line": 63, "column": 10 } } }, "property": { "type": "Identifier", "start": 1491, "end": 1505, "loc": { "start": { "line": 63, "column": 11 }, "end": { "line": 63, "column": 25 }, "identifierName": "_stateListener" }, "name": "_stateListener" }, "computed": false }, "property": { "type": "Identifier", "start": 1506, "end": 1509, "loc": { "start": { "line": 63, "column": 26 }, "end": { "line": 63, "column": 29 }, "identifierName": "set" }, "name": "set" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 1510, "end": 1514, "loc": { "start": { "line": 63, "column": 30 }, "end": { "line": 63, "column": 34 }, "identifierName": "name" }, "name": "name" }, { "type": "Identifier", "start": 1516, "end": 1521, "loc": { "start": { "line": 63, "column": 36 }, "end": { "line": 63, "column": 41 }, "identifierName": "state" }, "name": "state" } ] } } ], "directives": [] }, "alternate": null }, { "type": "ReturnStatement", "start": 1533, "end": 1545, "loc": { "start": { "line": 65, "column": 4 }, "end": { "line": 65, "column": 16 } }, "argument": { "type": "Identifier", "start": 1540, "end": 1545, "loc": { "start": { "line": 65, "column": 11 }, "end": { "line": 65, "column": 16 }, "identifierName": "state" }, "name": "state" } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * @private\n * Init the saved state for an event name.\n ", "start": 1191, "end": 1259, "loc": { "start": { "line": 52, "column": 2 }, "end": { "line": 55, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Returns a Promise that is resolved when the event name is called.\n * The Promise is immediately resolved when the event name was called in the\n * past.\n ", "start": 1553, "end": 1723, "loc": { "start": { "line": 68, "column": 2 }, "end": { "line": 72, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 1726, "end": 1792, "loc": { "start": { "line": 73, "column": 2 }, "end": { "line": 75, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 1726, "end": 1730, "loc": { "start": { "line": 73, "column": 2 }, "end": { "line": 73, "column": 6 }, "identifierName": "when" }, "name": "when", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1732, "end": 1736, "loc": { "start": { "line": 73, "column": 8 }, "end": { "line": 73, "column": 12 }, "identifierName": "name" }, "name": "name" } ], "body": { "type": "BlockStatement", "start": 1738, "end": 1792, "loc": { "start": { "line": 73, "column": 14 }, "end": { "line": 75, "column": 3 } }, "body": [ { "type": "ReturnStatement", "start": 1744, "end": 1788, "loc": { "start": { "line": 74, "column": 4 }, "end": { "line": 74, "column": 48 } }, "argument": { "type": "MemberExpression", "start": 1751, "end": 1788, "loc": { "start": { "line": 74, "column": 11 }, "end": { "line": 74, "column": 48 } }, "object": { "type": "CallExpression", "start": 1751, "end": 1780, "loc": { "start": { "line": 74, "column": 11 }, "end": { "line": 74, "column": 40 } }, "callee": { "type": "MemberExpression", "start": 1751, "end": 1774, "loc": { "start": { "line": 74, "column": 11 }, "end": { "line": 74, "column": 34 } }, "object": { "type": "ThisExpression", "start": 1751, "end": 1755, "loc": { "start": { "line": 74, "column": 11 }, "end": { "line": 74, "column": 15 } } }, "property": { "type": "Identifier", "start": 1756, "end": 1774, "loc": { "start": { "line": 74, "column": 16 }, "end": { "line": 74, "column": 34 }, "identifierName": "_initStateListener" }, "name": "_initStateListener" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 1775, "end": 1779, "loc": { "start": { "line": 74, "column": 35 }, "end": { "line": 74, "column": 39 }, "identifierName": "name" }, "name": "name" } ] }, "property": { "type": "Identifier", "start": 1781, "end": 1788, "loc": { "start": { "line": 74, "column": 41 }, "end": { "line": 74, "column": 48 }, "identifierName": "promise" }, "name": "promise" }, "computed": false } } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Returns a Promise that is resolved when the event name is called.\n * The Promise is immediately resolved when the event name was called in the\n * past.\n ", "start": 1553, "end": 1723, "loc": { "start": { "line": 68, "column": 2 }, "end": { "line": 72, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Remove an event listener that was registered with either\n * {@link EventHandler#on} or {@link EventHandler#once}.\n ", "start": 1796, "end": 1926, "loc": { "start": { "line": 77, "column": 2 }, "end": { "line": 80, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 1929, "end": 2207, "loc": { "start": { "line": 81, "column": 2 }, "end": { "line": 90, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 1929, "end": 1932, "loc": { "start": { "line": 81, "column": 2 }, "end": { "line": 81, "column": 5 }, "identifierName": "off" }, "name": "off", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 1934, "end": 1938, "loc": { "start": { "line": 81, "column": 7 }, "end": { "line": 81, "column": 11 }, "identifierName": "name" }, "name": "name" }, { "type": "Identifier", "start": 1940, "end": 1941, "loc": { "start": { "line": 81, "column": 13 }, "end": { "line": 81, "column": 14 }, "identifierName": "f" }, "name": "f" } ], "body": { "type": "BlockStatement", "start": 1943, "end": 2207, "loc": { "start": { "line": 81, "column": 16 }, "end": { "line": 90, "column": 3 } }, "body": [ { "type": "IfStatement", "start": 1949, "end": 2054, "loc": { "start": { "line": 82, "column": 4 }, "end": { "line": 84, "column": 5 } }, "test": { "type": "LogicalExpression", "start": 1953, "end": 1978, "loc": { "start": { "line": 82, "column": 8 }, "end": { "line": 82, "column": 33 } }, "left": { "type": "BinaryExpression", "start": 1953, "end": 1965, "loc": { "start": { "line": 82, "column": 8 }, "end": { "line": 82, "column": 20 } }, "left": { "type": "Identifier", "start": 1953, "end": 1957, "loc": { "start": { "line": 82, "column": 8 }, "end": { "line": 82, "column": 12 }, "identifierName": "name" }, "name": "name" }, "operator": "==", "right": { "type": "NullLiteral", "start": 1961, "end": 1965, "loc": { "start": { "line": 82, "column": 16 }, "end": { "line": 82, "column": 20 } } } }, "operator": "||", "right": { "type": "BinaryExpression", "start": 1969, "end": 1978, "loc": { "start": { "line": 82, "column": 24 }, "end": { "line": 82, "column": 33 } }, "left": { "type": "Identifier", "start": 1969, "end": 1970, "loc": { "start": { "line": 82, "column": 24 }, "end": { "line": 82, "column": 25 }, "identifierName": "f" }, "name": "f" }, "operator": "==", "right": { "type": "NullLiteral", "start": 1974, "end": 1978, "loc": { "start": { "line": 82, "column": 29 }, "end": { "line": 82, "column": 33 } } } } }, "consequent": { "type": "BlockStatement", "start": 1980, "end": 2054, "loc": { "start": { "line": 82, "column": 35 }, "end": { "line": 84, "column": 5 } }, "body": [ { "type": "ThrowStatement", "start": 1988, "end": 2048, "loc": { "start": { "line": 83, "column": 6 }, "end": { "line": 83, "column": 66 } }, "argument": { "type": "NewExpression", "start": 1994, "end": 2048, "loc": { "start": { "line": 83, "column": 12 }, "end": { "line": 83, "column": 66 } }, "callee": { "type": "Identifier", "start": 1998, "end": 2003, "loc": { "start": { "line": 83, "column": 16 }, "end": { "line": 83, "column": 21 }, "identifierName": "Error" }, "name": "Error" }, "arguments": [ { "type": "StringLiteral", "start": 2004, "end": 2047, "loc": { "start": { "line": 83, "column": 22 }, "end": { "line": 83, "column": 65 } }, "extra": { "rawValue": "You must specify event name and function!", "raw": "'You must specify event name and function!'" }, "value": "You must specify event name and function!" } ] } } ], "directives": [] }, "alternate": null }, { "type": "VariableDeclaration", "start": 2059, "end": 2105, "loc": { "start": { "line": 85, "column": 4 }, "end": { "line": 85, "column": 50 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2065, "end": 2105, "loc": { "start": { "line": 85, "column": 10 }, "end": { "line": 85, "column": 50 } }, "id": { "type": "Identifier", "start": 2065, "end": 2073, "loc": { "start": { "line": 85, "column": 10 }, "end": { "line": 85, "column": 18 }, "identifierName": "listener" }, "name": "listener" }, "init": { "type": "CallExpression", "start": 2076, "end": 2105, "loc": { "start": { "line": 85, "column": 21 }, "end": { "line": 85, "column": 50 } }, "callee": { "type": "MemberExpression", "start": 2076, "end": 2099, "loc": { "start": { "line": 85, "column": 21 }, "end": { "line": 85, "column": 44 } }, "object": { "type": "MemberExpression", "start": 2076, "end": 2095, "loc": { "start": { "line": 85, "column": 21 }, "end": { "line": 85, "column": 40 } }, "object": { "type": "ThisExpression", "start": 2076, "end": 2080, "loc": { "start": { "line": 85, "column": 21 }, "end": { "line": 85, "column": 25 } } }, "property": { "type": "Identifier", "start": 2081, "end": 2095, "loc": { "start": { "line": 85, "column": 26 }, "end": { "line": 85, "column": 40 }, "identifierName": "_eventListener" }, "name": "_eventListener" }, "computed": false }, "property": { "type": "Identifier", "start": 2096, "end": 2099, "loc": { "start": { "line": 85, "column": 41 }, "end": { "line": 85, "column": 44 }, "identifierName": "get" }, "name": "get" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 2100, "end": 2104, "loc": { "start": { "line": 85, "column": 45 }, "end": { "line": 85, "column": 49 }, "identifierName": "name" }, "name": "name" } ] } } ], "kind": "const" }, { "type": "IfStatement", "start": 2110, "end": 2203, "loc": { "start": { "line": 86, "column": 4 }, "end": { "line": 89, "column": 5 } }, "test": { "type": "BinaryExpression", "start": 2114, "end": 2136, "loc": { "start": { "line": 86, "column": 8 }, "end": { "line": 86, "column": 30 } }, "left": { "type": "Identifier", "start": 2114, "end": 2122, "loc": { "start": { "line": 86, "column": 8 }, "end": { "line": 86, "column": 16 }, "identifierName": "listener" }, "name": "listener" }, "operator": "!==", "right": { "type": "Identifier", "start": 2127, "end": 2136, "loc": { "start": { "line": 86, "column": 21 }, "end": { "line": 86, "column": 30 }, "identifierName": "undefined" }, "name": "undefined" } }, "consequent": { "type": "BlockStatement", "start": 2138, "end": 2203, "loc": { "start": { "line": 86, "column": 32 }, "end": { "line": 89, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 2146, "end": 2167, "loc": { "start": { "line": 87, "column": 6 }, "end": { "line": 87, "column": 27 } }, "expression": { "type": "CallExpression", "start": 2146, "end": 2167, "loc": { "start": { "line": 87, "column": 6 }, "end": { "line": 87, "column": 27 } }, "callee": { "type": "MemberExpression", "start": 2146, "end": 2164, "loc": { "start": { "line": 87, "column": 6 }, "end": { "line": 87, "column": 24 } }, "object": { "type": "MemberExpression", "start": 2146, "end": 2157, "loc": { "start": { "line": 87, "column": 6 }, "end": { "line": 87, "column": 17 } }, "object": { "type": "Identifier", "start": 2146, "end": 2154, "loc": { "start": { "line": 87, "column": 6 }, "end": { "line": 87, "column": 14 }, "identifierName": "listener" }, "name": "listener" }, "property": { "type": "Identifier", "start": 2155, "end": 2157, "loc": { "start": { "line": 87, "column": 15 }, "end": { "line": 87, "column": 17 }, "identifierName": "on" }, "name": "on" }, "computed": false }, "property": { "type": "Identifier", "start": 2158, "end": 2164, "loc": { "start": { "line": 87, "column": 18 }, "end": { "line": 87, "column": 24 }, "identifierName": "delete" }, "name": "delete" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 2165, "end": 2166, "loc": { "start": { "line": 87, "column": 25 }, "end": { "line": 87, "column": 26 }, "identifierName": "f" }, "name": "f" } ] } }, { "type": "ExpressionStatement", "start": 2174, "end": 2197, "loc": { "start": { "line": 88, "column": 6 }, "end": { "line": 88, "column": 29 } }, "expression": { "type": "CallExpression", "start": 2174, "end": 2197, "loc": { "start": { "line": 88, "column": 6 }, "end": { "line": 88, "column": 29 } }, "callee": { "type": "MemberExpression", "start": 2174, "end": 2194, "loc": { "start": { "line": 88, "column": 6 }, "end": { "line": 88, "column": 26 } }, "object": { "type": "MemberExpression", "start": 2174, "end": 2187, "loc": { "start": { "line": 88, "column": 6 }, "end": { "line": 88, "column": 19 } }, "object": { "type": "Identifier", "start": 2174, "end": 2182, "loc": { "start": { "line": 88, "column": 6 }, "end": { "line": 88, "column": 14 }, "identifierName": "listener" }, "name": "listener" }, "property": { "type": "Identifier", "start": 2183, "end": 2187, "loc": { "start": { "line": 88, "column": 15 }, "end": { "line": 88, "column": 19 }, "identifierName": "once" }, "name": "once" }, "computed": false }, "property": { "type": "Identifier", "start": 2188, "end": 2194, "loc": { "start": { "line": 88, "column": 20 }, "end": { "line": 88, "column": 26 }, "identifierName": "delete" }, "name": "delete" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 2195, "end": 2196, "loc": { "start": { "line": 88, "column": 27 }, "end": { "line": 88, "column": 28 }, "identifierName": "f" }, "name": "f" } ] } } ], "directives": [] }, "alternate": null } ], "directives": [], "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Remove an event listener that was registered with either\n * {@link EventHandler#on} or {@link EventHandler#once}.\n ", "start": 1796, "end": 1926, "loc": { "start": { "line": 77, "column": 2 }, "end": { "line": 80, "column": 5 } } } ], "trailingComments": [ { "type": "CommentBlock", "value": "*\n * Emit a named event. All registered event listeners that listen to the\n * specified name will receive the event.\n *\n * @param {String} name The event name.\n * @param {Array} args The arguments that are applied to the event listener.\n ", "start": 2211, "end": 2465, "loc": { "start": { "line": 92, "column": 2 }, "end": { "line": 98, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 2468, "end": 2831, "loc": { "start": { "line": 99, "column": 2 }, "end": { "line": 109, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 2468, "end": 2472, "loc": { "start": { "line": 99, "column": 2 }, "end": { "line": 99, "column": 6 }, "identifierName": "emit" }, "name": "emit", "leadingComments": null }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 2474, "end": 2478, "loc": { "start": { "line": 99, "column": 8 }, "end": { "line": 99, "column": 12 }, "identifierName": "name" }, "name": "name" }, { "type": "RestElement", "start": 2480, "end": 2487, "loc": { "start": { "line": 99, "column": 14 }, "end": { "line": 99, "column": 21 } }, "argument": { "type": "Identifier", "start": 2483, "end": 2487, "loc": { "start": { "line": 99, "column": 17 }, "end": { "line": 99, "column": 21 }, "identifierName": "args" }, "name": "args" } } ], "body": { "type": "BlockStatement", "start": 2489, "end": 2831, "loc": { "start": { "line": 99, "column": 23 }, "end": { "line": 109, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 2495, "end": 2534, "loc": { "start": { "line": 100, "column": 4 }, "end": { "line": 100, "column": 43 } }, "expression": { "type": "CallExpression", "start": 2495, "end": 2534, "loc": { "start": { "line": 100, "column": 4 }, "end": { "line": 100, "column": 43 } }, "callee": { "type": "MemberExpression", "start": 2495, "end": 2532, "loc": { "start": { "line": 100, "column": 4 }, "end": { "line": 100, "column": 41 } }, "object": { "type": "CallExpression", "start": 2495, "end": 2524, "loc": { "start": { "line": 100, "column": 4 }, "end": { "line": 100, "column": 33 } }, "callee": { "type": "MemberExpression", "start": 2495, "end": 2518, "loc": { "start": { "line": 100, "column": 4 }, "end": { "line": 100, "column": 27 } }, "object": { "type": "ThisExpression", "start": 2495, "end": 2499, "loc": { "start": { "line": 100, "column": 4 }, "end": { "line": 100, "column": 8 } } }, "property": { "type": "Identifier", "start": 2500, "end": 2518, "loc": { "start": { "line": 100, "column": 9 }, "end": { "line": 100, "column": 27 }, "identifierName": "_initStateListener" }, "name": "_initStateListener" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 2519, "end": 2523, "loc": { "start": { "line": 100, "column": 28 }, "end": { "line": 100, "column": 32 }, "identifierName": "name" }, "name": "name" } ] }, "property": { "type": "Identifier", "start": 2525, "end": 2532, "loc": { "start": { "line": 100, "column": 34 }, "end": { "line": 100, "column": 41 }, "identifierName": "resolve" }, "name": "resolve" }, "computed": false }, "arguments": [] } }, { "type": "VariableDeclaration", "start": 2539, "end": 2585, "loc": { "start": { "line": 101, "column": 4 }, "end": { "line": 101, "column": 50 } }, "declarations": [ { "type": "VariableDeclarator", "start": 2545, "end": 2585, "loc": { "start": { "line": 101, "column": 10 }, "end": { "line": 101, "column": 50 } }, "id": { "type": "Identifier", "start": 2545, "end": 2553, "loc": { "start": { "line": 101, "column": 10 }, "end": { "line": 101, "column": 18 }, "identifierName": "listener" }, "name": "listener" }, "init": { "type": "CallExpression", "start": 2556, "end": 2585, "loc": { "start": { "line": 101, "column": 21 }, "end": { "line": 101, "column": 50 } }, "callee": { "type": "MemberExpression", "start": 2556, "end": 2579, "loc": { "start": { "line": 101, "column": 21 }, "end": { "line": 101, "column": 44 } }, "object": { "type": "MemberExpression", "start": 2556, "end": 2575, "loc": { "start": { "line": 101, "column": 21 }, "end": { "line": 101, "column": 40 } }, "object": { "type": "ThisExpression", "start": 2556, "end": 2560, "loc": { "start": { "line": 101, "column": 21 }, "end": { "line": 101, "column": 25 } } }, "property": { "type": "Identifier", "start": 2561, "end": 2575, "loc": { "start": { "line": 101, "column": 26 }, "end": { "line": 101, "column": 40 }, "identifierName": "_eventListener" }, "name": "_eventListener" }, "computed": false }, "property": { "type": "Identifier", "start": 2576, "end": 2579, "loc": { "start": { "line": 101, "column": 41 }, "end": { "line": 101, "column": 44 }, "identifierName": "get" }, "name": "get" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 2580, "end": 2584, "loc": { "start": { "line": 101, "column": 45 }, "end": { "line": 101, "column": 49 }, "identifierName": "name" }, "name": "name" } ] } } ], "kind": "const" }, { "type": "IfStatement", "start": 2590, "end": 2827, "loc": { "start": { "line": 102, "column": 4 }, "end": { "line": 108, "column": 5 } }, "test": { "type": "BinaryExpression", "start": 2594, "end": 2616, "loc": { "start": { "line": 102, "column": 8 }, "end": { "line": 102, "column": 30 } }, "left": { "type": "Identifier", "start": 2594, "end": 2602, "loc": { "start": { "line": 102, "column": 8 }, "end": { "line": 102, "column": 16 }, "identifierName": "listener" }, "name": "listener" }, "operator": "!==", "right": { "type": "Identifier", "start": 2607, "end": 2616, "loc": { "start": { "line": 102, "column": 21 }, "end": { "line": 102, "column": 30 }, "identifierName": "undefined" }, "name": "undefined" } }, "consequent": { "type": "BlockStatement", "start": 2618, "end": 2763, "loc": { "start": { "line": 102, "column": 32 }, "end": { "line": 106, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 2626, "end": 2671, "loc": { "start": { "line": 103, "column": 6 }, "end": { "line": 103, "column": 51 } }, "expression": { "type": "CallExpression", "start": 2626, "end": 2671, "loc": { "start": { "line": 103, "column": 6 }, "end": { "line": 103, "column": 51 } }, "callee": { "type": "MemberExpression", "start": 2626, "end": 2645, "loc": { "start": { "line": 103, "column": 6 }, "end": { "line": 103, "column": 25 } }, "object": { "type": "MemberExpression", "start": 2626, "end": 2637, "loc": { "start": { "line": 103, "column": 6 }, "end": { "line": 103, "column": 17 } }, "object": { "type": "Identifier", "start": 2626, "end": 2634, "loc": { "start": { "line": 103, "column": 6 }, "end": { "line": 103, "column": 14 }, "identifierName": "listener" }, "name": "listener" }, "property": { "type": "Identifier", "start": 2635, "end": 2637, "loc": { "start": { "line": 103, "column": 15 }, "end": { "line": 103, "column": 17 }, "identifierName": "on" }, "name": "on" }, "computed": false }, "property": { "type": "Identifier", "start": 2638, "end": 2645, "loc": { "start": { "line": 103, "column": 18 }, "end": { "line": 103, "column": 25 }, "identifierName": "forEach" }, "name": "forEach" }, "computed": false }, "arguments": [ { "type": "ArrowFunctionExpression", "start": 2646, "end": 2670, "loc": { "start": { "line": 103, "column": 26 }, "end": { "line": 103, "column": 50 } }, "id": null, "generator": false, "expression": true, "async": false, "params": [ { "type": "Identifier", "start": 2646, "end": 2647, "loc": { "start": { "line": 103, "column": 26 }, "end": { "line": 103, "column": 27 }, "identifierName": "f" }, "name": "f" } ], "body": { "type": "CallExpression", "start": 2651, "end": 2670, "loc": { "start": { "line": 103, "column": 31 }, "end": { "line": 103, "column": 50 } }, "callee": { "type": "MemberExpression", "start": 2651, "end": 2658, "loc": { "start": { "line": 103, "column": 31 }, "end": { "line": 103, "column": 38 } }, "object": { "type": "Identifier", "start": 2651, "end": 2652, "loc": { "start": { "line": 103, "column": 31 }, "end": { "line": 103, "column": 32 }, "identifierName": "f" }, "name": "f" }, "property": { "type": "Identifier", "start": 2653, "end": 2658, "loc": { "start": { "line": 103, "column": 33 }, "end": { "line": 103, "column": 38 }, "identifierName": "apply" }, "name": "apply" }, "computed": false }, "arguments": [ { "type": "NullLiteral", "start": 2659, "end": 2663, "loc": { "start": { "line": 103, "column": 39 }, "end": { "line": 103, "column": 43 } } }, { "type": "Identifier", "start": 2665, "end": 2669, "loc": { "start": { "line": 103, "column": 45 }, "end": { "line": 103, "column": 49 }, "identifierName": "args" }, "name": "args" } ] } } ] } }, { "type": "ExpressionStatement", "start": 2678, "end": 2725, "loc": { "start": { "line": 104, "column": 6 }, "end": { "line": 104, "column": 53 } }, "expression": { "type": "CallExpression", "start": 2678, "end": 2725, "loc": { "start": { "line": 104, "column": 6 }, "end": { "line": 104, "column": 53 } }, "callee": { "type": "MemberExpression", "start": 2678, "end": 2699, "loc": { "start": { "line": 104, "column": 6 }, "end": { "line": 104, "column": 27 } }, "object": { "type": "MemberExpression", "start": 2678, "end": 2691, "loc": { "start": { "line": 104, "column": 6 }, "end": { "line": 104, "column": 19 } }, "object": { "type": "Identifier", "start": 2678, "end": 2686, "loc": { "start": { "line": 104, "column": 6 }, "end": { "line": 104, "column": 14 }, "identifierName": "listener" }, "name": "listener" }, "property": { "type": "Identifier", "start": 2687, "end": 2691, "loc": { "start": { "line": 104, "column": 15 }, "end": { "line": 104, "column": 19 }, "identifierName": "once" }, "name": "once" }, "computed": false }, "property": { "type": "Identifier", "start": 2692, "end": 2699, "loc": { "start": { "line": 104, "column": 20 }, "end": { "line": 104, "column": 27 }, "identifierName": "forEach" }, "name": "forEach" }, "computed": false }, "arguments": [ { "type": "ArrowFunctionExpression", "start": 2700, "end": 2724, "loc": { "start": { "line": 104, "column": 28 }, "end": { "line": 104, "column": 52 } }, "id": null, "generator": false, "expression": true, "async": false, "params": [ { "type": "Identifier", "start": 2700, "end": 2701, "loc": { "start": { "line": 104, "column": 28 }, "end": { "line": 104, "column": 29 }, "identifierName": "f" }, "name": "f" } ], "body": { "type": "CallExpression", "start": 2705, "end": 2724, "loc": { "start": { "line": 104, "column": 33 }, "end": { "line": 104, "column": 52 } }, "callee": { "type": "MemberExpression", "start": 2705, "end": 2712, "loc": { "start": { "line": 104, "column": 33 }, "end": { "line": 104, "column": 40 } }, "object": { "type": "Identifier", "start": 2705, "end": 2706, "loc": { "start": { "line": 104, "column": 33 }, "end": { "line": 104, "column": 34 }, "identifierName": "f" }, "name": "f" }, "property": { "type": "Identifier", "start": 2707, "end": 2712, "loc": { "start": { "line": 104, "column": 35 }, "end": { "line": 104, "column": 40 }, "identifierName": "apply" }, "name": "apply" }, "computed": false }, "arguments": [ { "type": "NullLiteral", "start": 2713, "end": 2717, "loc": { "start": { "line": 104, "column": 41 }, "end": { "line": 104, "column": 45 } } }, { "type": "Identifier", "start": 2719, "end": 2723, "loc": { "start": { "line": 104, "column": 47 }, "end": { "line": 104, "column": 51 }, "identifierName": "args" }, "name": "args" } ] } } ] } }, { "type": "ExpressionStatement", "start": 2732, "end": 2757, "loc": { "start": { "line": 105, "column": 6 }, "end": { "line": 105, "column": 31 } }, "expression": { "type": "AssignmentExpression", "start": 2732, "end": 2757, "loc": { "start": { "line": 105, "column": 6 }, "end": { "line": 105, "column": 31 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 2732, "end": 2745, "loc": { "start": { "line": 105, "column": 6 }, "end": { "line": 105, "column": 19 } }, "object": { "type": "Identifier", "start": 2732, "end": 2740, "loc": { "start": { "line": 105, "column": 6 }, "end": { "line": 105, "column": 14 }, "identifierName": "listener" }, "name": "listener" }, "property": { "type": "Identifier", "start": 2741, "end": 2745, "loc": { "start": { "line": 105, "column": 15 }, "end": { "line": 105, "column": 19 }, "identifierName": "once" }, "name": "once" }, "computed": false }, "right": { "type": "NewExpression", "start": 2748, "end": 2757, "loc": { "start": { "line": 105, "column": 22 }, "end": { "line": 105, "column": 31 } }, "callee": { "type": "Identifier", "start": 2752, "end": 2755, "loc": { "start": { "line": 105, "column": 26 }, "end": { "line": 105, "column": 29 }, "identifierName": "Set" }, "name": "Set" }, "arguments": [] } } } ], "directives": [] }, "alternate": { "type": "IfStatement", "start": 2769, "end": 2827, "loc": { "start": { "line": 106, "column": 11 }, "end": { "line": 108, "column": 5 } }, "test": { "type": "BinaryExpression", "start": 2773, "end": 2789, "loc": { "start": { "line": 106, "column": 15 }, "end": { "line": 106, "column": 31 } }, "left": { "type": "Identifier", "start": 2773, "end": 2777, "loc": { "start": { "line": 106, "column": 15 }, "end": { "line": 106, "column": 19 }, "identifierName": "name" }, "name": "name" }, "operator": "===", "right": { "type": "StringLiteral", "start": 2782, "end": 2789, "loc": { "start": { "line": 106, "column": 24 }, "end": { "line": 106, "column": 31 } }, "extra": { "rawValue": "error", "raw": "'error'" }, "value": "error" } }, "consequent": { "type": "BlockStatement", "start": 2791, "end": 2827, "loc": { "start": { "line": 106, "column": 33 }, "end": { "line": 108, "column": 5 } }, "body": [ { "type": "ExpressionStatement", "start": 2799, "end": 2821, "loc": { "start": { "line": 107, "column": 6 }, "end": { "line": 107, "column": 28 } }, "expression": { "type": "CallExpression", "start": 2799, "end": 2821, "loc": { "start": { "line": 107, "column": 6 }, "end": { "line": 107, "column": 28 } }, "callee": { "type": "MemberExpression", "start": 2799, "end": 2812, "loc": { "start": { "line": 107, "column": 6 }, "end": { "line": 107, "column": 19 } }, "object": { "type": "Identifier", "start": 2799, "end": 2806, "loc": { "start": { "line": 107, "column": 6 }, "end": { "line": 107, "column": 13 }, "identifierName": "console" }, "name": "console" }, "property": { "type": "Identifier", "start": 2807, "end": 2812, "loc": { "start": { "line": 107, "column": 14 }, "end": { "line": 107, "column": 19 }, "identifierName": "error" }, "name": "error" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 2813, "end": 2820, "loc": { "start": { "line": 107, "column": 20 }, "end": { "line": 107, "column": 27 } }, "object": { "type": "Identifier", "start": 2813, "end": 2817, "loc": { "start": { "line": 107, "column": 20 }, "end": { "line": 107, "column": 24 }, "identifierName": "args" }, "name": "args" }, "property": { "type": "NumericLiteral", "start": 2818, "end": 2819, "loc": { "start": { "line": 107, "column": 25 }, "end": { "line": 107, "column": 26 } }, "extra": { "rawValue": 0, "raw": "0" }, "value": 0 }, "computed": true } ] } } ], "directives": [] }, "alternate": null } } ], "directives": [] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Emit a named event. All registered event listeners that listen to the\n * specified name will receive the event.\n *\n * @param {String} name The event name.\n * @param {Array} args The arguments that are applied to the event listener.\n ", "start": 2211, "end": 2465, "loc": { "start": { "line": 92, "column": 2 }, "end": { "line": 98, "column": 5 } } } ] }, { "type": "ClassMethod", "start": 2834, "end": 2881, "loc": { "start": { "line": 110, "column": 2 }, "end": { "line": 112, "column": 3 } }, "static": false, "computed": false, "key": { "type": "Identifier", "start": 2834, "end": 2841, "loc": { "start": { "line": 110, "column": 2 }, "end": { "line": 110, "column": 9 }, "identifierName": "destroy" }, "name": "destroy" }, "kind": "method", "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 2845, "end": 2881, "loc": { "start": { "line": 110, "column": 13 }, "end": { "line": 112, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 2851, "end": 2877, "loc": { "start": { "line": 111, "column": 4 }, "end": { "line": 111, "column": 30 } }, "expression": { "type": "AssignmentExpression", "start": 2851, "end": 2877, "loc": { "start": { "line": 111, "column": 4 }, "end": { "line": 111, "column": 30 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 2851, "end": 2870, "loc": { "start": { "line": 111, "column": 4 }, "end": { "line": 111, "column": 23 } }, "object": { "type": "ThisExpression", "start": 2851, "end": 2855, "loc": { "start": { "line": 111, "column": 4 }, "end": { "line": 111, "column": 8 } } }, "property": { "type": "Identifier", "start": 2856, "end": 2870, "loc": { "start": { "line": 111, "column": 9 }, "end": { "line": 111, "column": 23 }, "identifierName": "_eventListener" }, "name": "_eventListener" }, "computed": false }, "right": { "type": "NullLiteral", "start": 2873, "end": 2877, "loc": { "start": { "line": 111, "column": 26 }, "end": { "line": 111, "column": 30 } } } } } ], "directives": [] } } ] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Handles named events.\n ", "start": 1, "end": 33, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 4, "column": 3 } } } ], "trailingComments": [] }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Handles named events.\n ", "start": 1, "end": 33, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 4, "column": 3 } } } ] } ], "directives": [] }, "comments": [ { "type": "CommentBlock", "value": "*\n * Handles named events.\n ", "start": 1, "end": 33, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 4, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * @private\n * Returns all listeners that listen to a specified name.\n *\n * @param {String} name The query event name.\n ", "start": 173, "end": 309, "loc": { "start": { "line": 11, "column": 2 }, "end": { "line": 16, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Adds a named event listener. The listener is removed after it has been\n * called once.\n *\n * @param {String} name The event name to listen to.\n * @param {Function} f The function that is executed when the event is fired.\n ", "start": 575, "end": 818, "loc": { "start": { "line": 29, "column": 2 }, "end": { "line": 35, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Adds a named event listener.\n *\n * @param {String} name The event name to listen to.\n * @param {Function} f The function that is executed when the event is fired.\n ", "start": 915, "end": 1098, "loc": { "start": { "line": 41, "column": 2 }, "end": { "line": 46, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * @private\n * Init the saved state for an event name.\n ", "start": 1191, "end": 1259, "loc": { "start": { "line": 52, "column": 2 }, "end": { "line": 55, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Returns a Promise that is resolved when the event name is called.\n * The Promise is immediately resolved when the event name was called in the\n * past.\n ", "start": 1553, "end": 1723, "loc": { "start": { "line": 68, "column": 2 }, "end": { "line": 72, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Remove an event listener that was registered with either\n * {@link EventHandler#on} or {@link EventHandler#once}.\n ", "start": 1796, "end": 1926, "loc": { "start": { "line": 77, "column": 2 }, "end": { "line": 80, "column": 5 } } }, { "type": "CommentBlock", "value": "*\n * Emit a named event. All registered event listeners that listen to the\n * specified name will receive the event.\n *\n * @param {String} name The event name.\n * @param {Array} args The arguments that are applied to the event listener.\n ", "start": 2211, "end": 2465, "loc": { "start": { "line": 92, "column": 2 }, "end": { "line": 98, "column": 5 } } } ], "tokens": [ { "type": "CommentBlock", "value": "*\n * Handles named events.\n ", "start": 1, "end": 33, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 4, "column": 3 } } }, { "type": { "label": "export", "keyword": "export", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "export", "start": 34, "end": 40, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 6 } } }, { "type": { "label": "default", "keyword": "default", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "default", "start": 41, "end": 48, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "column": 14 } } }, { "type": { "label": "class", "keyword": "class", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "class", "start": 49, "end": 54, "loc": { "start": { "line": 5, "column": 15 }, "end": { "line": 5, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "NamedEventHandler", "start": 55, "end": 72, "loc": { "start": { "line": 5, "column": 21 }, "end": { "line": 5, "column": 38 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 73, "end": 74, "loc": { "start": { "line": 5, "column": 39 }, "end": { "line": 5, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "constructor", "start": 77, "end": 88, "loc": { "start": { "line": 6, "column": 2 }, "end": { "line": 6, "column": 13 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 89, "end": 90, "loc": { "start": { "line": 6, "column": 14 }, "end": { "line": 6, "column": 15 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 90, "end": 91, "loc": { "start": { "line": 6, "column": 15 }, "end": { "line": 6, "column": 16 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 92, "end": 93, "loc": { "start": { "line": 6, "column": 17 }, "end": { "line": 6, "column": 18 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 98, "end": 102, "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 8 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 102, "end": 103, "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "_eventListener", "start": 103, "end": 117, "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 118, "end": 119, "loc": { "start": { "line": 7, "column": 24 }, "end": { "line": 7, "column": 25 } } }, { "type": { "label": "new", "keyword": "new", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "new", "start": 120, "end": 123, "loc": { "start": { "line": 7, "column": 26 }, "end": { "line": 7, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Map", "start": 124, "end": 127, "loc": { "start": { "line": 7, "column": 30 }, "end": { "line": 7, "column": 33 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 127, "end": 128, "loc": { "start": { "line": 7, "column": 33 }, "end": { "line": 7, "column": 34 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 128, "end": 129, "loc": { "start": { "line": 7, "column": 34 }, "end": { "line": 7, "column": 35 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 134, "end": 138, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 8 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 138, "end": 139, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "_stateListener", "start": 139, "end": 153, "loc": { "start": { "line": 8, "column": 9 }, "end": { "line": 8, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 154, "end": 155, "loc": { "start": { "line": 8, "column": 24 }, "end": { "line": 8, "column": 25 } } }, { "type": { "label": "new", "keyword": "new", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "new", "start": 156, "end": 159, "loc": { "start": { "line": 8, "column": 26 }, "end": { "line": 8, "column": 29 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Map", "start": 160, "end": 163, "loc": { "start": { "line": 8, "column": 30 }, "end": { "line": 8, "column": 33 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 163, "end": 164, "loc": { "start": { "line": 8, "column": 33 }, "end": { "line": 8, "column": 34 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 164, "end": 165, "loc": { "start": { "line": 8, "column": 34 }, "end": { "line": 8, "column": 35 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 168, "end": 169, "loc": { "start": { "line": 9, "column": 2 }, "end": { "line": 9, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * @private\n * Returns all listeners that listen to a specified name.\n *\n * @param {String} name The query event name.\n ", "start": 173, "end": 309, "loc": { "start": { "line": 11, "column": 2 }, "end": { "line": 16, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "_getListener", "start": 312, "end": 324, "loc": { "start": { "line": 17, "column": 2 }, "end": { "line": 17, "column": 14 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 325, "end": 326, "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "name", "start": 326, "end": 330, "loc": { "start": { "line": 17, "column": 16 }, "end": { "line": 17, "column": 20 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 330, "end": 331, "loc": { "start": { "line": 17, "column": 20 }, "end": { "line": 17, "column": 21 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 332, "end": 333, "loc": { "start": { "line": 17, "column": 22 }, "end": { "line": 17, "column": 23 } } }, { "type": { "label": "let", "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "let", "start": 338, "end": 341, "loc": { "start": { "line": 18, "column": 4 }, "end": { "line": 18, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "listeners", "start": 342, "end": 351, "loc": { "start": { "line": 18, "column": 8 }, "end": { "line": 18, "column": 17 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 352, "end": 353, "loc": { "start": { "line": 18, "column": 18 }, "end": { "line": 18, "column": 19 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 354, "end": 358, "loc": { "start": { "line": 18, "column": 20 }, "end": { "line": 18, "column": 24 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 358, "end": 359, "loc": { "start": { "line": 18, "column": 24 }, "end": { "line": 18, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "_eventListener", "start": 359, "end": 373, "loc": { "start": { "line": 18, "column": 25 }, "end": { "line": 18, "column": 39 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 373, "end": 374, "loc": { "start": { "line": 18, "column": 39 }, "end": { "line": 18, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "get", "start": 374, "end": 377, "loc": { "start": { "line": 18, "column": 40 }, "end": { "line": 18, "column": 43 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 377, "end": 378, "loc": { "start": { "line": 18, "column": 43 }, "end": { "line": 18, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "name", "start": 378, "end": 382, "loc": { "start": { "line": 18, "column": 44 }, "end": { "line": 18, "column": 48 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 382, "end": 383, "loc": { "start": { "line": 18, "column": 48 }, "end": { "line": 18, "column": 49 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 388, "end": 390, "loc": { "start": { "line": 19, "column": 4 }, "end": { "line": 19, "column": 6 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 391, "end": 392, "loc": { "start": { "line": 19, "column": 7 }, "end": { "line": 19, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "listeners", "start": 392, "end": 401, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 19, "column": 17 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "===", "start": 402, "end": 405, "loc": { "start": { "line": 19, "column": 18 }, "end": { "line": 19, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "undefined", "start": 406, "end": 415, "loc": { "start": { "line": 19, "column": 22 }, "end": { "line": 19, "column": 31 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 415, "end": 416, "loc": { "start": { "line": 19, "column": 31 }, "end": { "line": 19, "column": 32 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 417, "end": 418, "loc": { "start": { "line": 19, "column": 33 }, "end": { "line": 19, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "listeners", "start": 425, "end": 434, "loc": { "start": { "line": 20, "column": 6 }, "end": { "line": 20, "column": 15 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 435, "end": 436, "loc": { "start": { "line": 20, "column": 16 }, "end": { "line": 20, "column": 17 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 437, "end": 438, "loc": { "start": { "line": 20, "column": 18 }, "end": { "line": 20, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "once", "start": 447, "end": 451, "loc": { "start": { "line": 21, "column": 8 }, "end": { "line": 21, "column": 12 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 451, "end": 452, "loc": { "start": { "line": 21, "column": 12 }, "end": { "line": 21, "column": 13 } } }, { "type": { "label": "new", "keyword": "new", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "new", "start": 453, "end": 456, "loc": { "start": { "line": 21, "column": 14 }, "end": { "line": 21, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Set", "start": 457, "end": 460, "loc": { "start": { "line": 21, "column": 18 }, "end": { "line": 21, "column": 21 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 460, "end": 461, "loc": { "start": { "line": 21, "column": 21 }, "end": { "line": 21, "column": 22 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 461, "end": 462, "loc": { "start": { "line": 21, "column": 22 }, "end": { "line": 21, "column": 23 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 462, "end": 463, "loc": { "start": { "line": 21, "column": 23 }, "end": { "line": 21, "column": 24 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "on", "start": 472, "end": 474, "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 10 } } }, { "type": { "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 474, "end": 475, "loc": { "start": { "line": 22, "column": 10 }, "end": { "line": 22, "column": 11 } } }, { "type": { "label": "new", "keyword": "new", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "new", "start": 476, "end": 479, "loc": { "start": { "line": 22, "column": 12 }, "end": { "line": 22, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Set", "start": 480, "end": 483, "loc": { "start": { "line": 22, "column": 16 }, "end": { "line": 22, "column": 19 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 483, "end": 484, "loc": { "start": { "line": 22, "column": 19 }, "end": { "line": 22, "column": 20 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 484, "end": 485, "loc": { "start": { "line": 22, "column": 20 }, "end": { "line": 22, "column": 21 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 492, "end": 493, "loc": { "start": { "line": 23, "column": 6 }, "end": { "line": 23, "column": 7 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 500, "end": 504, "loc": { "start": { "line": 24, "column": 6 }, "end": { "line": 24, "column": 10 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 504, "end": 505, "loc": { "start": { "line": 24, "column": 10 }, "end": { "line": 24, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "_eventListener", "start": 505, "end": 519, "loc": { "start": { "line": 24, "column": 11 }, "end": { "line": 24, "column": 25 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 519, "end": 520, "loc": { "start": { "line": 24, "column": 25 }, "end": { "line": 24, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "set", "start": 520, "end": 523, "loc": { "start": { "line": 24, "column": 26 }, "end": { "line": 24, "column": 29 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 523, "end": 524, "loc": { "start": { "line": 24, "column": 29 }, "end": { "line": 24, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "name", "start": 524, "end": 528, "loc": { "start": { "line": 24, "column": 30 }, "end": { "line": 24, "column": 34 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 528, "end": 529, "loc": { "start": { "line": 24, "column": 34 }, "end": { "line": 24, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "listeners", "start": 530, "end": 539, "loc": { "start": { "line": 24, "column": 36 }, "end": { "line": 24, "column": 45 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 539, "end": 540, "loc": { "start": { "line": 24, "column": 45 }, "end": { "line": 24, "column": 46 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 545, "end": 546, "loc": { "start": { "line": 25, "column": 4 }, "end": { "line": 25, "column": 5 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 551, "end": 557, "loc": { "start": { "line": 26, "column": 4 }, "end": { "line": 26, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "listeners", "start": 558, "end": 567, "loc": { "start": { "line": 26, "column": 11 }, "end": { "line": 26, "column": 20 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 570, "end": 571, "loc": { "start": { "line": 27, "column": 2 }, "end": { "line": 27, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Adds a named event listener. The listener is removed after it has been\n * called once.\n *\n * @param {String} name The event name to listen to.\n * @param {Function} f The function that is executed when the event is fired.\n ", "start": 575, "end": 818, "loc": { "start": { "line": 29, "column": 2 }, "end": { "line": 35, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "once", "start": 821, "end": 825, "loc": { "start": { "line": 36, "column": 2 }, "end": { "line": 36, "column": 6 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 826, "end": 827, "loc": { "start": { "line": 36, "column": 7 }, "end": { "line": 36, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "name", "start": 827, "end": 831, "loc": { "start": { "line": 36, "column": 8 }, "end": { "line": 36, "column": 12 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 831, "end": 832, "loc": { "start": { "line": 36, "column": 12 }, "end": { "line": 36, "column": 13 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "f", "start": 833, "end": 834, "loc": { "start": { "line": 36, "column": 14 }, "end": { "line": 36, "column": 15 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 834, "end": 835, "loc": { "start": { "line": 36, "column": 15 }, "end": { "line": 36, "column": 16 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 836, "end": 837, "loc": { "start": { "line": 36, "column": 17 }, "end": { "line": 36, "column": 18 } } }, { "type": { "label": "let", "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "let", "start": 842, "end": 845, "loc": { "start": { "line": 37, "column": 4 }, "end": { "line": 37, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "listeners", "start": 846, "end": 855, "loc": { "start": { "line": 37, "column": 8 }, "end": { "line": 37, "column": 17 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 856, "end": 857, "loc": { "start": { "line": 37, "column": 18 }, "end": { "line": 37, "column": 19 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 858, "end": 862, "loc": { "start": { "line": 37, "column": 20 }, "end": { "line": 37, "column": 24 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 862, "end": 863, "loc": { "start": { "line": 37, "column": 24 }, "end": { "line": 37, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "_getListener", "start": 863, "end": 875, "loc": { "start": { "line": 37, "column": 25 }, "end": { "line": 37, "column": 37 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 875, "end": 876, "loc": { "start": { "line": 37, "column": 37 }, "end": { "line": 37, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "name", "start": 876, "end": 880, "loc": { "start": { "line": 37, "column": 38 }, "end": { "line": 37, "column": 42 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 880, "end": 881, "loc": { "start": { "line": 37, "column": 42 }, "end": { "line": 37, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "listeners", "start": 886, "end": 895, "loc": { "start": { "line": 38, "column": 4 }, "end": { "line": 38, "column": 13 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 895, "end": 896, "loc": { "start": { "line": 38, "column": 13 }, "end": { "line": 38, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "once", "start": 896, "end": 900, "loc": { "start": { "line": 38, "column": 14 }, "end": { "line": 38, "column": 18 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 900, "end": 901, "loc": { "start": { "line": 38, "column": 18 }, "end": { "line": 38, "column": 19 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "add", "start": 901, "end": 904, "loc": { "start": { "line": 38, "column": 19 }, "end": { "line": 38, "column": 22 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 904, "end": 905, "loc": { "start": { "line": 38, "column": 22 }, "end": { "line": 38, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "f", "start": 905, "end": 906, "loc": { "start": { "line": 38, "column": 23 }, "end": { "line": 38, "column": 24 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 906, "end": 907, "loc": { "start": { "line": 38, "column": 24 }, "end": { "line": 38, "column": 25 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 910, "end": 911, "loc": { "start": { "line": 39, "column": 2 }, "end": { "line": 39, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Adds a named event listener.\n *\n * @param {String} name The event name to listen to.\n * @param {Function} f The function that is executed when the event is fired.\n ", "start": 915, "end": 1098, "loc": { "start": { "line": 41, "column": 2 }, "end": { "line": 46, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "on", "start": 1101, "end": 1103, "loc": { "start": { "line": 47, "column": 2 }, "end": { "line": 47, "column": 4 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1104, "end": 1105, "loc": { "start": { "line": 47, "column": 5 }, "end": { "line": 47, "column": 6 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "name", "start": 1105, "end": 1109, "loc": { "start": { "line": 47, "column": 6 }, "end": { "line": 47, "column": 10 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1109, "end": 1110, "loc": { "start": { "line": 47, "column": 10 }, "end": { "line": 47, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "f", "start": 1111, "end": 1112, "loc": { "start": { "line": 47, "column": 12 }, "end": { "line": 47, "column": 13 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1112, "end": 1113, "loc": { "start": { "line": 47, "column": 13 }, "end": { "line": 47, "column": 14 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1114, "end": 1115, "loc": { "start": { "line": 47, "column": 15 }, "end": { "line": 47, "column": 16 } } }, { "type": { "label": "let", "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "let", "start": 1120, "end": 1123, "loc": { "start": { "line": 48, "column": 4 }, "end": { "line": 48, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "listeners", "start": 1124, "end": 1133, "loc": { "start": { "line": 48, "column": 8 }, "end": { "line": 48, "column": 17 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1134, "end": 1135, "loc": { "start": { "line": 48, "column": 18 }, "end": { "line": 48, "column": 19 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 1136, "end": 1140, "loc": { "start": { "line": 48, "column": 20 }, "end": { "line": 48, "column": 24 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1140, "end": 1141, "loc": { "start": { "line": 48, "column": 24 }, "end": { "line": 48, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "_getListener", "start": 1141, "end": 1153, "loc": { "start": { "line": 48, "column": 25 }, "end": { "line": 48, "column": 37 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1153, "end": 1154, "loc": { "start": { "line": 48, "column": 37 }, "end": { "line": 48, "column": 38 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "name", "start": 1154, "end": 1158, "loc": { "start": { "line": 48, "column": 38 }, "end": { "line": 48, "column": 42 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1158, "end": 1159, "loc": { "start": { "line": 48, "column": 42 }, "end": { "line": 48, "column": 43 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "listeners", "start": 1164, "end": 1173, "loc": { "start": { "line": 49, "column": 4 }, "end": { "line": 49, "column": 13 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1173, "end": 1174, "loc": { "start": { "line": 49, "column": 13 }, "end": { "line": 49, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "on", "start": 1174, "end": 1176, "loc": { "start": { "line": 49, "column": 14 }, "end": { "line": 49, "column": 16 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1176, "end": 1177, "loc": { "start": { "line": 49, "column": 16 }, "end": { "line": 49, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "add", "start": 1177, "end": 1180, "loc": { "start": { "line": 49, "column": 17 }, "end": { "line": 49, "column": 20 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1180, "end": 1181, "loc": { "start": { "line": 49, "column": 20 }, "end": { "line": 49, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "f", "start": 1181, "end": 1182, "loc": { "start": { "line": 49, "column": 21 }, "end": { "line": 49, "column": 22 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1182, "end": 1183, "loc": { "start": { "line": 49, "column": 22 }, "end": { "line": 49, "column": 23 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1186, "end": 1187, "loc": { "start": { "line": 50, "column": 2 }, "end": { "line": 50, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * @private\n * Init the saved state for an event name.\n ", "start": 1191, "end": 1259, "loc": { "start": { "line": 52, "column": 2 }, "end": { "line": 55, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "_initStateListener", "start": 1262, "end": 1280, "loc": { "start": { "line": 56, "column": 2 }, "end": { "line": 56, "column": 20 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1281, "end": 1282, "loc": { "start": { "line": 56, "column": 21 }, "end": { "line": 56, "column": 22 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "name", "start": 1282, "end": 1286, "loc": { "start": { "line": 56, "column": 22 }, "end": { "line": 56, "column": 26 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1286, "end": 1287, "loc": { "start": { "line": 56, "column": 26 }, "end": { "line": 56, "column": 27 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1288, "end": 1289, "loc": { "start": { "line": 56, "column": 28 }, "end": { "line": 56, "column": 29 } } }, { "type": { "label": "let", "keyword": "let", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "let", "start": 1294, "end": 1297, "loc": { "start": { "line": 57, "column": 4 }, "end": { "line": 57, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "state", "start": 1298, "end": 1303, "loc": { "start": { "line": 57, "column": 8 }, "end": { "line": 57, "column": 13 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1304, "end": 1305, "loc": { "start": { "line": 57, "column": 14 }, "end": { "line": 57, "column": 15 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 1306, "end": 1310, "loc": { "start": { "line": 57, "column": 16 }, "end": { "line": 57, "column": 20 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1310, "end": 1311, "loc": { "start": { "line": 57, "column": 20 }, "end": { "line": 57, "column": 21 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "_stateListener", "start": 1311, "end": 1325, "loc": { "start": { "line": 57, "column": 21 }, "end": { "line": 57, "column": 35 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1325, "end": 1326, "loc": { "start": { "line": 57, "column": 35 }, "end": { "line": 57, "column": 36 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "get", "start": 1326, "end": 1329, "loc": { "start": { "line": 57, "column": 36 }, "end": { "line": 57, "column": 39 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1329, "end": 1330, "loc": { "start": { "line": 57, "column": 39 }, "end": { "line": 57, "column": 40 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "name", "start": 1330, "end": 1334, "loc": { "start": { "line": 57, "column": 40 }, "end": { "line": 57, "column": 44 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1334, "end": 1335, "loc": { "start": { "line": 57, "column": 44 }, "end": { "line": 57, "column": 45 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 1340, "end": 1342, "loc": { "start": { "line": 58, "column": 4 }, "end": { "line": 58, "column": 6 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1343, "end": 1344, "loc": { "start": { "line": 58, "column": 7 }, "end": { "line": 58, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "state", "start": 1344, "end": 1349, "loc": { "start": { "line": 58, "column": 8 }, "end": { "line": 58, "column": 13 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "===", "start": 1350, "end": 1353, "loc": { "start": { "line": 58, "column": 14 }, "end": { "line": 58, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "undefined", "start": 1354, "end": 1363, "loc": { "start": { "line": 58, "column": 18 }, "end": { "line": 58, "column": 27 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1363, "end": 1364, "loc": { "start": { "line": 58, "column": 27 }, "end": { "line": 58, "column": 28 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1365, "end": 1366, "loc": { "start": { "line": 58, "column": 29 }, "end": { "line": 58, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "state", "start": 1373, "end": 1378, "loc": { "start": { "line": 59, "column": 6 }, "end": { "line": 59, "column": 11 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1379, "end": 1380, "loc": { "start": { "line": 59, "column": 12 }, "end": { "line": 59, "column": 13 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1381, "end": 1382, "loc": { "start": { "line": 59, "column": 14 }, "end": { "line": 59, "column": 15 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1382, "end": 1383, "loc": { "start": { "line": 59, "column": 15 }, "end": { "line": 59, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "state", "start": 1390, "end": 1395, "loc": { "start": { "line": 60, "column": 6 }, "end": { "line": 60, "column": 11 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1395, "end": 1396, "loc": { "start": { "line": 60, "column": 11 }, "end": { "line": 60, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "promise", "start": 1396, "end": 1403, "loc": { "start": { "line": 60, "column": 12 }, "end": { "line": 60, "column": 19 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1404, "end": 1405, "loc": { "start": { "line": 60, "column": 20 }, "end": { "line": 60, "column": 21 } } }, { "type": { "label": "new", "keyword": "new", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "new", "start": 1406, "end": 1409, "loc": { "start": { "line": 60, "column": 22 }, "end": { "line": 60, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Promise", "start": 1410, "end": 1417, "loc": { "start": { "line": 60, "column": 26 }, "end": { "line": 60, "column": 33 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1417, "end": 1418, "loc": { "start": { "line": 60, "column": 33 }, "end": { "line": 60, "column": 34 } } }, { "type": { "label": "function", "keyword": "function", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "function", "start": 1418, "end": 1426, "loc": { "start": { "line": 60, "column": 34 }, "end": { "line": 60, "column": 42 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1427, "end": 1428, "loc": { "start": { "line": 60, "column": 43 }, "end": { "line": 60, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "resolve", "start": 1428, "end": 1435, "loc": { "start": { "line": 60, "column": 44 }, "end": { "line": 60, "column": 51 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1435, "end": 1436, "loc": { "start": { "line": 60, "column": 51 }, "end": { "line": 60, "column": 52 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1437, "end": 1438, "loc": { "start": { "line": 60, "column": 53 }, "end": { "line": 60, "column": 54 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "state", "start": 1447, "end": 1452, "loc": { "start": { "line": 61, "column": 8 }, "end": { "line": 61, "column": 13 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1452, "end": 1453, "loc": { "start": { "line": 61, "column": 13 }, "end": { "line": 61, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "resolve", "start": 1453, "end": 1460, "loc": { "start": { "line": 61, "column": 14 }, "end": { "line": 61, "column": 21 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 1461, "end": 1462, "loc": { "start": { "line": 61, "column": 22 }, "end": { "line": 61, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "resolve", "start": 1463, "end": 1470, "loc": { "start": { "line": 61, "column": 24 }, "end": { "line": 61, "column": 31 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1477, "end": 1478, "loc": { "start": { "line": 62, "column": 6 }, "end": { "line": 62, "column": 7 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1478, "end": 1479, "loc": { "start": { "line": 62, "column": 7 }, "end": { "line": 62, "column": 8 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 1486, "end": 1490, "loc": { "start": { "line": 63, "column": 6 }, "end": { "line": 63, "column": 10 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1490, "end": 1491, "loc": { "start": { "line": 63, "column": 10 }, "end": { "line": 63, "column": 11 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "_stateListener", "start": 1491, "end": 1505, "loc": { "start": { "line": 63, "column": 11 }, "end": { "line": 63, "column": 25 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1505, "end": 1506, "loc": { "start": { "line": 63, "column": 25 }, "end": { "line": 63, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "set", "start": 1506, "end": 1509, "loc": { "start": { "line": 63, "column": 26 }, "end": { "line": 63, "column": 29 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1509, "end": 1510, "loc": { "start": { "line": 63, "column": 29 }, "end": { "line": 63, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "name", "start": 1510, "end": 1514, "loc": { "start": { "line": 63, "column": 30 }, "end": { "line": 63, "column": 34 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1514, "end": 1515, "loc": { "start": { "line": 63, "column": 34 }, "end": { "line": 63, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "state", "start": 1516, "end": 1521, "loc": { "start": { "line": 63, "column": 36 }, "end": { "line": 63, "column": 41 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1521, "end": 1522, "loc": { "start": { "line": 63, "column": 41 }, "end": { "line": 63, "column": 42 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1527, "end": 1528, "loc": { "start": { "line": 64, "column": 4 }, "end": { "line": 64, "column": 5 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 1533, "end": 1539, "loc": { "start": { "line": 65, "column": 4 }, "end": { "line": 65, "column": 10 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "state", "start": 1540, "end": 1545, "loc": { "start": { "line": 65, "column": 11 }, "end": { "line": 65, "column": 16 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1548, "end": 1549, "loc": { "start": { "line": 66, "column": 2 }, "end": { "line": 66, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Returns a Promise that is resolved when the event name is called.\n * The Promise is immediately resolved when the event name was called in the\n * past.\n ", "start": 1553, "end": 1723, "loc": { "start": { "line": 68, "column": 2 }, "end": { "line": 72, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "when", "start": 1726, "end": 1730, "loc": { "start": { "line": 73, "column": 2 }, "end": { "line": 73, "column": 6 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1731, "end": 1732, "loc": { "start": { "line": 73, "column": 7 }, "end": { "line": 73, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "name", "start": 1732, "end": 1736, "loc": { "start": { "line": 73, "column": 8 }, "end": { "line": 73, "column": 12 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1736, "end": 1737, "loc": { "start": { "line": 73, "column": 12 }, "end": { "line": 73, "column": 13 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1738, "end": 1739, "loc": { "start": { "line": 73, "column": 14 }, "end": { "line": 73, "column": 15 } } }, { "type": { "label": "return", "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "return", "start": 1744, "end": 1750, "loc": { "start": { "line": 74, "column": 4 }, "end": { "line": 74, "column": 10 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 1751, "end": 1755, "loc": { "start": { "line": 74, "column": 11 }, "end": { "line": 74, "column": 15 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1755, "end": 1756, "loc": { "start": { "line": 74, "column": 15 }, "end": { "line": 74, "column": 16 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "_initStateListener", "start": 1756, "end": 1774, "loc": { "start": { "line": 74, "column": 16 }, "end": { "line": 74, "column": 34 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1774, "end": 1775, "loc": { "start": { "line": 74, "column": 34 }, "end": { "line": 74, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "name", "start": 1775, "end": 1779, "loc": { "start": { "line": 74, "column": 35 }, "end": { "line": 74, "column": 39 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1779, "end": 1780, "loc": { "start": { "line": 74, "column": 39 }, "end": { "line": 74, "column": 40 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1780, "end": 1781, "loc": { "start": { "line": 74, "column": 40 }, "end": { "line": 74, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "promise", "start": 1781, "end": 1788, "loc": { "start": { "line": 74, "column": 41 }, "end": { "line": 74, "column": 48 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1791, "end": 1792, "loc": { "start": { "line": 75, "column": 2 }, "end": { "line": 75, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Remove an event listener that was registered with either\n * {@link EventHandler#on} or {@link EventHandler#once}.\n ", "start": 1796, "end": 1926, "loc": { "start": { "line": 77, "column": 2 }, "end": { "line": 80, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "off", "start": 1929, "end": 1932, "loc": { "start": { "line": 81, "column": 2 }, "end": { "line": 81, "column": 5 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1933, "end": 1934, "loc": { "start": { "line": 81, "column": 6 }, "end": { "line": 81, "column": 7 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "name", "start": 1934, "end": 1938, "loc": { "start": { "line": 81, "column": 7 }, "end": { "line": 81, "column": 11 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 1938, "end": 1939, "loc": { "start": { "line": 81, "column": 11 }, "end": { "line": 81, "column": 12 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "f", "start": 1940, "end": 1941, "loc": { "start": { "line": 81, "column": 13 }, "end": { "line": 81, "column": 14 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1941, "end": 1942, "loc": { "start": { "line": 81, "column": 14 }, "end": { "line": 81, "column": 15 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1943, "end": 1944, "loc": { "start": { "line": 81, "column": 16 }, "end": { "line": 81, "column": 17 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 1949, "end": 1951, "loc": { "start": { "line": 82, "column": 4 }, "end": { "line": 82, "column": 6 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1952, "end": 1953, "loc": { "start": { "line": 82, "column": 7 }, "end": { "line": 82, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "name", "start": 1953, "end": 1957, "loc": { "start": { "line": 82, "column": 8 }, "end": { "line": 82, "column": 12 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "==", "start": 1958, "end": 1960, "loc": { "start": { "line": 82, "column": 13 }, "end": { "line": 82, "column": 15 } } }, { "type": { "label": "null", "keyword": "null", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "null", "start": 1961, "end": 1965, "loc": { "start": { "line": 82, "column": 16 }, "end": { "line": 82, "column": 20 } } }, { "type": { "label": "||", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 1, "updateContext": null }, "value": "||", "start": 1966, "end": 1968, "loc": { "start": { "line": 82, "column": 21 }, "end": { "line": 82, "column": 23 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "f", "start": 1969, "end": 1970, "loc": { "start": { "line": 82, "column": 24 }, "end": { "line": 82, "column": 25 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "==", "start": 1971, "end": 1973, "loc": { "start": { "line": 82, "column": 26 }, "end": { "line": 82, "column": 28 } } }, { "type": { "label": "null", "keyword": "null", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "null", "start": 1974, "end": 1978, "loc": { "start": { "line": 82, "column": 29 }, "end": { "line": 82, "column": 33 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1978, "end": 1979, "loc": { "start": { "line": 82, "column": 33 }, "end": { "line": 82, "column": 34 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 1980, "end": 1981, "loc": { "start": { "line": 82, "column": 35 }, "end": { "line": 82, "column": 36 } } }, { "type": { "label": "throw", "keyword": "throw", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "throw", "start": 1988, "end": 1993, "loc": { "start": { "line": 83, "column": 6 }, "end": { "line": 83, "column": 11 } } }, { "type": { "label": "new", "keyword": "new", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "new", "start": 1994, "end": 1997, "loc": { "start": { "line": 83, "column": 12 }, "end": { "line": 83, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Error", "start": 1998, "end": 2003, "loc": { "start": { "line": 83, "column": 16 }, "end": { "line": 83, "column": 21 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2003, "end": 2004, "loc": { "start": { "line": 83, "column": 21 }, "end": { "line": 83, "column": 22 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "You must specify event name and function!", "start": 2004, "end": 2047, "loc": { "start": { "line": 83, "column": 22 }, "end": { "line": 83, "column": 65 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2047, "end": 2048, "loc": { "start": { "line": 83, "column": 65 }, "end": { "line": 83, "column": 66 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2053, "end": 2054, "loc": { "start": { "line": 84, "column": 4 }, "end": { "line": 84, "column": 5 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 2059, "end": 2064, "loc": { "start": { "line": 85, "column": 4 }, "end": { "line": 85, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "listener", "start": 2065, "end": 2073, "loc": { "start": { "line": 85, "column": 10 }, "end": { "line": 85, "column": 18 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2074, "end": 2075, "loc": { "start": { "line": 85, "column": 19 }, "end": { "line": 85, "column": 20 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 2076, "end": 2080, "loc": { "start": { "line": 85, "column": 21 }, "end": { "line": 85, "column": 25 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2080, "end": 2081, "loc": { "start": { "line": 85, "column": 25 }, "end": { "line": 85, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "_eventListener", "start": 2081, "end": 2095, "loc": { "start": { "line": 85, "column": 26 }, "end": { "line": 85, "column": 40 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2095, "end": 2096, "loc": { "start": { "line": 85, "column": 40 }, "end": { "line": 85, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "get", "start": 2096, "end": 2099, "loc": { "start": { "line": 85, "column": 41 }, "end": { "line": 85, "column": 44 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2099, "end": 2100, "loc": { "start": { "line": 85, "column": 44 }, "end": { "line": 85, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "name", "start": 2100, "end": 2104, "loc": { "start": { "line": 85, "column": 45 }, "end": { "line": 85, "column": 49 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2104, "end": 2105, "loc": { "start": { "line": 85, "column": 49 }, "end": { "line": 85, "column": 50 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 2110, "end": 2112, "loc": { "start": { "line": 86, "column": 4 }, "end": { "line": 86, "column": 6 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2113, "end": 2114, "loc": { "start": { "line": 86, "column": 7 }, "end": { "line": 86, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "listener", "start": 2114, "end": 2122, "loc": { "start": { "line": 86, "column": 8 }, "end": { "line": 86, "column": 16 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "!==", "start": 2123, "end": 2126, "loc": { "start": { "line": 86, "column": 17 }, "end": { "line": 86, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "undefined", "start": 2127, "end": 2136, "loc": { "start": { "line": 86, "column": 21 }, "end": { "line": 86, "column": 30 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2136, "end": 2137, "loc": { "start": { "line": 86, "column": 30 }, "end": { "line": 86, "column": 31 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2138, "end": 2139, "loc": { "start": { "line": 86, "column": 32 }, "end": { "line": 86, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "listener", "start": 2146, "end": 2154, "loc": { "start": { "line": 87, "column": 6 }, "end": { "line": 87, "column": 14 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2154, "end": 2155, "loc": { "start": { "line": 87, "column": 14 }, "end": { "line": 87, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "on", "start": 2155, "end": 2157, "loc": { "start": { "line": 87, "column": 15 }, "end": { "line": 87, "column": 17 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2157, "end": 2158, "loc": { "start": { "line": 87, "column": 17 }, "end": { "line": 87, "column": 18 } } }, { "type": { "label": "delete", "keyword": "delete", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": null, "updateContext": null }, "value": "delete", "start": 2158, "end": 2164, "loc": { "start": { "line": 87, "column": 18 }, "end": { "line": 87, "column": 24 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2164, "end": 2165, "loc": { "start": { "line": 87, "column": 24 }, "end": { "line": 87, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "f", "start": 2165, "end": 2166, "loc": { "start": { "line": 87, "column": 25 }, "end": { "line": 87, "column": 26 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2166, "end": 2167, "loc": { "start": { "line": 87, "column": 26 }, "end": { "line": 87, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "listener", "start": 2174, "end": 2182, "loc": { "start": { "line": 88, "column": 6 }, "end": { "line": 88, "column": 14 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2182, "end": 2183, "loc": { "start": { "line": 88, "column": 14 }, "end": { "line": 88, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "once", "start": 2183, "end": 2187, "loc": { "start": { "line": 88, "column": 15 }, "end": { "line": 88, "column": 19 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2187, "end": 2188, "loc": { "start": { "line": 88, "column": 19 }, "end": { "line": 88, "column": 20 } } }, { "type": { "label": "delete", "keyword": "delete", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": true, "postfix": false, "binop": null, "updateContext": null }, "value": "delete", "start": 2188, "end": 2194, "loc": { "start": { "line": 88, "column": 20 }, "end": { "line": 88, "column": 26 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2194, "end": 2195, "loc": { "start": { "line": 88, "column": 26 }, "end": { "line": 88, "column": 27 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "f", "start": 2195, "end": 2196, "loc": { "start": { "line": 88, "column": 27 }, "end": { "line": 88, "column": 28 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2196, "end": 2197, "loc": { "start": { "line": 88, "column": 28 }, "end": { "line": 88, "column": 29 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2202, "end": 2203, "loc": { "start": { "line": 89, "column": 4 }, "end": { "line": 89, "column": 5 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2206, "end": 2207, "loc": { "start": { "line": 90, "column": 2 }, "end": { "line": 90, "column": 3 } } }, { "type": "CommentBlock", "value": "*\n * Emit a named event. All registered event listeners that listen to the\n * specified name will receive the event.\n *\n * @param {String} name The event name.\n * @param {Array} args The arguments that are applied to the event listener.\n ", "start": 2211, "end": 2465, "loc": { "start": { "line": 92, "column": 2 }, "end": { "line": 98, "column": 5 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "emit", "start": 2468, "end": 2472, "loc": { "start": { "line": 99, "column": 2 }, "end": { "line": 99, "column": 6 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2473, "end": 2474, "loc": { "start": { "line": 99, "column": 7 }, "end": { "line": 99, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "name", "start": 2474, "end": 2478, "loc": { "start": { "line": 99, "column": 8 }, "end": { "line": 99, "column": 12 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2478, "end": 2479, "loc": { "start": { "line": 99, "column": 12 }, "end": { "line": 99, "column": 13 } } }, { "type": { "label": "...", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2480, "end": 2483, "loc": { "start": { "line": 99, "column": 14 }, "end": { "line": 99, "column": 17 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "args", "start": 2483, "end": 2487, "loc": { "start": { "line": 99, "column": 17 }, "end": { "line": 99, "column": 21 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2487, "end": 2488, "loc": { "start": { "line": 99, "column": 21 }, "end": { "line": 99, "column": 22 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2489, "end": 2490, "loc": { "start": { "line": 99, "column": 23 }, "end": { "line": 99, "column": 24 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 2495, "end": 2499, "loc": { "start": { "line": 100, "column": 4 }, "end": { "line": 100, "column": 8 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2499, "end": 2500, "loc": { "start": { "line": 100, "column": 8 }, "end": { "line": 100, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "_initStateListener", "start": 2500, "end": 2518, "loc": { "start": { "line": 100, "column": 9 }, "end": { "line": 100, "column": 27 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2518, "end": 2519, "loc": { "start": { "line": 100, "column": 27 }, "end": { "line": 100, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "name", "start": 2519, "end": 2523, "loc": { "start": { "line": 100, "column": 28 }, "end": { "line": 100, "column": 32 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2523, "end": 2524, "loc": { "start": { "line": 100, "column": 32 }, "end": { "line": 100, "column": 33 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2524, "end": 2525, "loc": { "start": { "line": 100, "column": 33 }, "end": { "line": 100, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "resolve", "start": 2525, "end": 2532, "loc": { "start": { "line": 100, "column": 34 }, "end": { "line": 100, "column": 41 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2532, "end": 2533, "loc": { "start": { "line": 100, "column": 41 }, "end": { "line": 100, "column": 42 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2533, "end": 2534, "loc": { "start": { "line": 100, "column": 42 }, "end": { "line": 100, "column": 43 } } }, { "type": { "label": "const", "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "const", "start": 2539, "end": 2544, "loc": { "start": { "line": 101, "column": 4 }, "end": { "line": 101, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "listener", "start": 2545, "end": 2553, "loc": { "start": { "line": 101, "column": 10 }, "end": { "line": 101, "column": 18 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2554, "end": 2555, "loc": { "start": { "line": 101, "column": 19 }, "end": { "line": 101, "column": 20 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 2556, "end": 2560, "loc": { "start": { "line": 101, "column": 21 }, "end": { "line": 101, "column": 25 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2560, "end": 2561, "loc": { "start": { "line": 101, "column": 25 }, "end": { "line": 101, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "_eventListener", "start": 2561, "end": 2575, "loc": { "start": { "line": 101, "column": 26 }, "end": { "line": 101, "column": 40 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2575, "end": 2576, "loc": { "start": { "line": 101, "column": 40 }, "end": { "line": 101, "column": 41 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "get", "start": 2576, "end": 2579, "loc": { "start": { "line": 101, "column": 41 }, "end": { "line": 101, "column": 44 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2579, "end": 2580, "loc": { "start": { "line": 101, "column": 44 }, "end": { "line": 101, "column": 45 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "name", "start": 2580, "end": 2584, "loc": { "start": { "line": 101, "column": 45 }, "end": { "line": 101, "column": 49 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2584, "end": 2585, "loc": { "start": { "line": 101, "column": 49 }, "end": { "line": 101, "column": 50 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 2590, "end": 2592, "loc": { "start": { "line": 102, "column": 4 }, "end": { "line": 102, "column": 6 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2593, "end": 2594, "loc": { "start": { "line": 102, "column": 7 }, "end": { "line": 102, "column": 8 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "listener", "start": 2594, "end": 2602, "loc": { "start": { "line": 102, "column": 8 }, "end": { "line": 102, "column": 16 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "!==", "start": 2603, "end": 2606, "loc": { "start": { "line": 102, "column": 17 }, "end": { "line": 102, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "undefined", "start": 2607, "end": 2616, "loc": { "start": { "line": 102, "column": 21 }, "end": { "line": 102, "column": 30 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2616, "end": 2617, "loc": { "start": { "line": 102, "column": 30 }, "end": { "line": 102, "column": 31 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2618, "end": 2619, "loc": { "start": { "line": 102, "column": 32 }, "end": { "line": 102, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "listener", "start": 2626, "end": 2634, "loc": { "start": { "line": 103, "column": 6 }, "end": { "line": 103, "column": 14 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2634, "end": 2635, "loc": { "start": { "line": 103, "column": 14 }, "end": { "line": 103, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "on", "start": 2635, "end": 2637, "loc": { "start": { "line": 103, "column": 15 }, "end": { "line": 103, "column": 17 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2637, "end": 2638, "loc": { "start": { "line": 103, "column": 17 }, "end": { "line": 103, "column": 18 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "forEach", "start": 2638, "end": 2645, "loc": { "start": { "line": 103, "column": 18 }, "end": { "line": 103, "column": 25 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2645, "end": 2646, "loc": { "start": { "line": 103, "column": 25 }, "end": { "line": 103, "column": 26 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "f", "start": 2646, "end": 2647, "loc": { "start": { "line": 103, "column": 26 }, "end": { "line": 103, "column": 27 } } }, { "type": { "label": "=>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2648, "end": 2650, "loc": { "start": { "line": 103, "column": 28 }, "end": { "line": 103, "column": 30 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "f", "start": 2651, "end": 2652, "loc": { "start": { "line": 103, "column": 31 }, "end": { "line": 103, "column": 32 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2652, "end": 2653, "loc": { "start": { "line": 103, "column": 32 }, "end": { "line": 103, "column": 33 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "apply", "start": 2653, "end": 2658, "loc": { "start": { "line": 103, "column": 33 }, "end": { "line": 103, "column": 38 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2658, "end": 2659, "loc": { "start": { "line": 103, "column": 38 }, "end": { "line": 103, "column": 39 } } }, { "type": { "label": "null", "keyword": "null", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "null", "start": 2659, "end": 2663, "loc": { "start": { "line": 103, "column": 39 }, "end": { "line": 103, "column": 43 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2663, "end": 2664, "loc": { "start": { "line": 103, "column": 43 }, "end": { "line": 103, "column": 44 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "args", "start": 2665, "end": 2669, "loc": { "start": { "line": 103, "column": 45 }, "end": { "line": 103, "column": 49 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2669, "end": 2670, "loc": { "start": { "line": 103, "column": 49 }, "end": { "line": 103, "column": 50 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2670, "end": 2671, "loc": { "start": { "line": 103, "column": 50 }, "end": { "line": 103, "column": 51 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "listener", "start": 2678, "end": 2686, "loc": { "start": { "line": 104, "column": 6 }, "end": { "line": 104, "column": 14 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2686, "end": 2687, "loc": { "start": { "line": 104, "column": 14 }, "end": { "line": 104, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "once", "start": 2687, "end": 2691, "loc": { "start": { "line": 104, "column": 15 }, "end": { "line": 104, "column": 19 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2691, "end": 2692, "loc": { "start": { "line": 104, "column": 19 }, "end": { "line": 104, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "forEach", "start": 2692, "end": 2699, "loc": { "start": { "line": 104, "column": 20 }, "end": { "line": 104, "column": 27 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2699, "end": 2700, "loc": { "start": { "line": 104, "column": 27 }, "end": { "line": 104, "column": 28 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "f", "start": 2700, "end": 2701, "loc": { "start": { "line": 104, "column": 28 }, "end": { "line": 104, "column": 29 } } }, { "type": { "label": "=>", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2702, "end": 2704, "loc": { "start": { "line": 104, "column": 30 }, "end": { "line": 104, "column": 32 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "f", "start": 2705, "end": 2706, "loc": { "start": { "line": 104, "column": 33 }, "end": { "line": 104, "column": 34 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2706, "end": 2707, "loc": { "start": { "line": 104, "column": 34 }, "end": { "line": 104, "column": 35 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "apply", "start": 2707, "end": 2712, "loc": { "start": { "line": 104, "column": 35 }, "end": { "line": 104, "column": 40 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2712, "end": 2713, "loc": { "start": { "line": 104, "column": 40 }, "end": { "line": 104, "column": 41 } } }, { "type": { "label": "null", "keyword": "null", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "null", "start": 2713, "end": 2717, "loc": { "start": { "line": 104, "column": 41 }, "end": { "line": 104, "column": 45 } } }, { "type": { "label": ",", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2717, "end": 2718, "loc": { "start": { "line": 104, "column": 45 }, "end": { "line": 104, "column": 46 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "args", "start": 2719, "end": 2723, "loc": { "start": { "line": 104, "column": 47 }, "end": { "line": 104, "column": 51 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2723, "end": 2724, "loc": { "start": { "line": 104, "column": 51 }, "end": { "line": 104, "column": 52 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2724, "end": 2725, "loc": { "start": { "line": 104, "column": 52 }, "end": { "line": 104, "column": 53 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "listener", "start": 2732, "end": 2740, "loc": { "start": { "line": 105, "column": 6 }, "end": { "line": 105, "column": 14 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2740, "end": 2741, "loc": { "start": { "line": 105, "column": 14 }, "end": { "line": 105, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "once", "start": 2741, "end": 2745, "loc": { "start": { "line": 105, "column": 15 }, "end": { "line": 105, "column": 19 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2746, "end": 2747, "loc": { "start": { "line": 105, "column": 20 }, "end": { "line": 105, "column": 21 } } }, { "type": { "label": "new", "keyword": "new", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "new", "start": 2748, "end": 2751, "loc": { "start": { "line": 105, "column": 22 }, "end": { "line": 105, "column": 25 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "Set", "start": 2752, "end": 2755, "loc": { "start": { "line": 105, "column": 26 }, "end": { "line": 105, "column": 29 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2755, "end": 2756, "loc": { "start": { "line": 105, "column": 29 }, "end": { "line": 105, "column": 30 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2756, "end": 2757, "loc": { "start": { "line": 105, "column": 30 }, "end": { "line": 105, "column": 31 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2762, "end": 2763, "loc": { "start": { "line": 106, "column": 4 }, "end": { "line": 106, "column": 5 } } }, { "type": { "label": "else", "keyword": "else", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "else", "start": 2764, "end": 2768, "loc": { "start": { "line": 106, "column": 6 }, "end": { "line": 106, "column": 10 } } }, { "type": { "label": "if", "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "if", "start": 2769, "end": 2771, "loc": { "start": { "line": 106, "column": 11 }, "end": { "line": 106, "column": 13 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2772, "end": 2773, "loc": { "start": { "line": 106, "column": 14 }, "end": { "line": 106, "column": 15 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "name", "start": 2773, "end": 2777, "loc": { "start": { "line": 106, "column": 15 }, "end": { "line": 106, "column": 19 } } }, { "type": { "label": "==/!=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": 6, "updateContext": null }, "value": "===", "start": 2778, "end": 2781, "loc": { "start": { "line": 106, "column": 20 }, "end": { "line": 106, "column": 23 } } }, { "type": { "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "error", "start": 2782, "end": 2789, "loc": { "start": { "line": 106, "column": 24 }, "end": { "line": 106, "column": 31 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2789, "end": 2790, "loc": { "start": { "line": 106, "column": 31 }, "end": { "line": 106, "column": 32 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2791, "end": 2792, "loc": { "start": { "line": 106, "column": 33 }, "end": { "line": 106, "column": 34 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "console", "start": 2799, "end": 2806, "loc": { "start": { "line": 107, "column": 6 }, "end": { "line": 107, "column": 13 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2806, "end": 2807, "loc": { "start": { "line": 107, "column": 13 }, "end": { "line": 107, "column": 14 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "error", "start": 2807, "end": 2812, "loc": { "start": { "line": 107, "column": 14 }, "end": { "line": 107, "column": 19 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2812, "end": 2813, "loc": { "start": { "line": 107, "column": 19 }, "end": { "line": 107, "column": 20 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "args", "start": 2813, "end": 2817, "loc": { "start": { "line": 107, "column": 20 }, "end": { "line": 107, "column": 24 } } }, { "type": { "label": "[", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2817, "end": 2818, "loc": { "start": { "line": 107, "column": 24 }, "end": { "line": 107, "column": 25 } } }, { "type": { "label": "num", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": 0, "start": 2818, "end": 2819, "loc": { "start": { "line": 107, "column": 25 }, "end": { "line": 107, "column": 26 } } }, { "type": { "label": "]", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2819, "end": 2820, "loc": { "start": { "line": 107, "column": 26 }, "end": { "line": 107, "column": 27 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2820, "end": 2821, "loc": { "start": { "line": 107, "column": 27 }, "end": { "line": 107, "column": 28 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2826, "end": 2827, "loc": { "start": { "line": 108, "column": 4 }, "end": { "line": 108, "column": 5 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2830, "end": 2831, "loc": { "start": { "line": 109, "column": 2 }, "end": { "line": 109, "column": 3 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "destroy", "start": 2834, "end": 2841, "loc": { "start": { "line": 110, "column": 2 }, "end": { "line": 110, "column": 9 } } }, { "type": { "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2842, "end": 2843, "loc": { "start": { "line": 110, "column": 10 }, "end": { "line": 110, "column": 11 } } }, { "type": { "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2843, "end": 2844, "loc": { "start": { "line": 110, "column": 11 }, "end": { "line": 110, "column": 12 } } }, { "type": { "label": "{", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2845, "end": 2846, "loc": { "start": { "line": 110, "column": 13 }, "end": { "line": 110, "column": 14 } } }, { "type": { "label": "this", "keyword": "this", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "this", "start": 2851, "end": 2855, "loc": { "start": { "line": 111, "column": 4 }, "end": { "line": 111, "column": 8 } } }, { "type": { "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2855, "end": 2856, "loc": { "start": { "line": 111, "column": 8 }, "end": { "line": 111, "column": 9 } } }, { "type": { "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "value": "_eventListener", "start": 2856, "end": 2870, "loc": { "start": { "line": 111, "column": 9 }, "end": { "line": 111, "column": 23 } } }, { "type": { "label": "=", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "=", "start": 2871, "end": 2872, "loc": { "start": { "line": 111, "column": 24 }, "end": { "line": 111, "column": 25 } } }, { "type": { "label": "null", "keyword": "null", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "value": "null", "start": 2873, "end": 2877, "loc": { "start": { "line": 111, "column": 26 }, "end": { "line": 111, "column": 30 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2880, "end": 2881, "loc": { "start": { "line": 112, "column": 2 }, "end": { "line": 112, "column": 3 } } }, { "type": { "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null }, "start": 2882, "end": 2883, "loc": { "start": { "line": 113, "column": 0 }, "end": { "line": 113, "column": 1 } } }, { "type": { "label": "eof", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, "start": 2884, "end": 2884, "loc": { "start": { "line": 114, "column": 0 }, "end": { "line": 114, "column": 0 } } } ] }