1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-06-03 06:22:34 +02:00
TableFilter/docs/ast/source/event.js.json
koalyptus 4481fbe361 publish Docs to gh-pages (auto)
branch:       master
SHA:          c7d6de72f7
range SHA:    81f31a3106fb...c7d6de72f785
build id:     375208741
build number: 1103
2018-05-05 08:21:30 +00:00

13964 lines
352 KiB
JSON

{
"type": "File",
"start": 0,
"end": 2650,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 112,
"column": 0
}
},
"program": {
"type": "Program",
"start": 0,
"end": 2650,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 112,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 28,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 28
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"start": 8,
"end": 12,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 12
}
},
"imported": {
"type": "Identifier",
"start": 8,
"end": 12,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 12
},
"identifierName": "root"
},
"name": "root"
},
"local": {
"type": "Identifier",
"start": 8,
"end": 12,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 12
},
"identifierName": "root"
},
"name": "root"
}
}
],
"source": {
"type": "StringLiteral",
"start": 19,
"end": 27,
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 27
}
},
"extra": {
"rawValue": "./root",
"raw": "'./root'"
},
"value": "./root"
},
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * DOM event utilities\n ",
"start": 30,
"end": 60,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 5,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Add event handler for specified event on passed element\n *\n * @param {DOMElement} obj Element\n * @param {String} type Event type\n * @param {Function} Handler\n * @param {Boolean} capture Specifiy whether the event should be executed in\n * the capturing or in the bubbling phase\n ",
"start": 62,
"end": 349,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 15,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 350,
"end": 623,
"loc": {
"start": {
"line": 16,
"column": 0
},
"end": {
"line": 25,
"column": 2
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 357,
"end": 623,
"loc": {
"start": {
"line": 16,
"column": 7
},
"end": {
"line": 25,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 363,
"end": 622,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 25,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 363,
"end": 369,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 19
},
"identifierName": "addEvt"
},
"name": "addEvt",
"leadingComments": null
},
"init": {
"type": "ArrowFunctionExpression",
"start": 372,
"end": 622,
"loc": {
"start": {
"line": 16,
"column": 22
},
"end": {
"line": 25,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 363,
"end": 369,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 19
},
"identifierName": "addEvt"
},
"name": "addEvt",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 373,
"end": 376,
"loc": {
"start": {
"line": 16,
"column": 23
},
"end": {
"line": 16,
"column": 26
},
"identifierName": "obj"
},
"name": "obj"
},
{
"type": "Identifier",
"start": 378,
"end": 382,
"loc": {
"start": {
"line": 16,
"column": 28
},
"end": {
"line": 16,
"column": 32
},
"identifierName": "type"
},
"name": "type"
},
{
"type": "Identifier",
"start": 384,
"end": 388,
"loc": {
"start": {
"line": 16,
"column": 34
},
"end": {
"line": 16,
"column": 38
},
"identifierName": "func"
},
"name": "func"
},
{
"type": "Identifier",
"start": 390,
"end": 397,
"loc": {
"start": {
"line": 16,
"column": 40
},
"end": {
"line": 16,
"column": 47
},
"identifierName": "capture"
},
"name": "capture"
}
],
"body": {
"type": "BlockStatement",
"start": 402,
"end": 622,
"loc": {
"start": {
"line": 16,
"column": 52
},
"end": {
"line": 25,
"column": 1
}
},
"body": [
{
"type": "IfStatement",
"start": 408,
"end": 620,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 24,
"column": 5
}
},
"test": {
"type": "MemberExpression",
"start": 412,
"end": 432,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 28
}
},
"object": {
"type": "Identifier",
"start": 412,
"end": 415,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 11
},
"identifierName": "obj"
},
"name": "obj"
},
"property": {
"type": "Identifier",
"start": 416,
"end": 432,
"loc": {
"start": {
"line": 17,
"column": 12
},
"end": {
"line": 17,
"column": 28
},
"identifierName": "addEventListener"
},
"name": "addEventListener"
},
"computed": false
},
"consequent": {
"type": "BlockStatement",
"start": 434,
"end": 492,
"loc": {
"start": {
"line": 17,
"column": 30
},
"end": {
"line": 19,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 444,
"end": 486,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 50
}
},
"expression": {
"type": "CallExpression",
"start": 444,
"end": 485,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 49
}
},
"callee": {
"type": "MemberExpression",
"start": 444,
"end": 464,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 28
}
},
"object": {
"type": "Identifier",
"start": 444,
"end": 447,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 11
},
"identifierName": "obj"
},
"name": "obj"
},
"property": {
"type": "Identifier",
"start": 448,
"end": 464,
"loc": {
"start": {
"line": 18,
"column": 12
},
"end": {
"line": 18,
"column": 28
},
"identifierName": "addEventListener"
},
"name": "addEventListener"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 465,
"end": 469,
"loc": {
"start": {
"line": 18,
"column": 29
},
"end": {
"line": 18,
"column": 33
},
"identifierName": "type"
},
"name": "type"
},
{
"type": "Identifier",
"start": 471,
"end": 475,
"loc": {
"start": {
"line": 18,
"column": 35
},
"end": {
"line": 18,
"column": 39
},
"identifierName": "func"
},
"name": "func"
},
{
"type": "Identifier",
"start": 477,
"end": 484,
"loc": {
"start": {
"line": 18,
"column": 41
},
"end": {
"line": 18,
"column": 48
},
"identifierName": "capture"
},
"name": "capture"
}
]
}
}
],
"directives": []
},
"alternate": {
"type": "IfStatement",
"start": 502,
"end": 620,
"loc": {
"start": {
"line": 20,
"column": 9
},
"end": {
"line": 24,
"column": 5
}
},
"test": {
"type": "MemberExpression",
"start": 506,
"end": 521,
"loc": {
"start": {
"line": 20,
"column": 13
},
"end": {
"line": 20,
"column": 28
}
},
"object": {
"type": "Identifier",
"start": 506,
"end": 509,
"loc": {
"start": {
"line": 20,
"column": 13
},
"end": {
"line": 20,
"column": 16
},
"identifierName": "obj"
},
"name": "obj"
},
"property": {
"type": "Identifier",
"start": 510,
"end": 521,
"loc": {
"start": {
"line": 20,
"column": 17
},
"end": {
"line": 20,
"column": 28
},
"identifierName": "attachEvent"
},
"name": "attachEvent"
},
"computed": false
},
"consequent": {
"type": "BlockStatement",
"start": 523,
"end": 574,
"loc": {
"start": {
"line": 20,
"column": 30
},
"end": {
"line": 22,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 533,
"end": 568,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 43
}
},
"expression": {
"type": "CallExpression",
"start": 533,
"end": 567,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 42
}
},
"callee": {
"type": "MemberExpression",
"start": 533,
"end": 548,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 23
}
},
"object": {
"type": "Identifier",
"start": 533,
"end": 536,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 11
},
"identifierName": "obj"
},
"name": "obj"
},
"property": {
"type": "Identifier",
"start": 537,
"end": 548,
"loc": {
"start": {
"line": 21,
"column": 12
},
"end": {
"line": 21,
"column": 23
},
"identifierName": "attachEvent"
},
"name": "attachEvent"
},
"computed": false
},
"arguments": [
{
"type": "BinaryExpression",
"start": 549,
"end": 560,
"loc": {
"start": {
"line": 21,
"column": 24
},
"end": {
"line": 21,
"column": 35
}
},
"left": {
"type": "StringLiteral",
"start": 549,
"end": 553,
"loc": {
"start": {
"line": 21,
"column": 24
},
"end": {
"line": 21,
"column": 28
}
},
"extra": {
"rawValue": "on",
"raw": "'on'"
},
"value": "on"
},
"operator": "+",
"right": {
"type": "Identifier",
"start": 556,
"end": 560,
"loc": {
"start": {
"line": 21,
"column": 31
},
"end": {
"line": 21,
"column": 35
},
"identifierName": "type"
},
"name": "type"
}
},
{
"type": "Identifier",
"start": 562,
"end": 566,
"loc": {
"start": {
"line": 21,
"column": 37
},
"end": {
"line": 21,
"column": 41
},
"identifierName": "func"
},
"name": "func"
}
]
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 580,
"end": 620,
"loc": {
"start": {
"line": 22,
"column": 11
},
"end": {
"line": 24,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 590,
"end": 614,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 32
}
},
"expression": {
"type": "AssignmentExpression",
"start": 590,
"end": 613,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 31
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 590,
"end": 606,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 590,
"end": 593,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 11
},
"identifierName": "obj"
},
"name": "obj"
},
"property": {
"type": "BinaryExpression",
"start": 594,
"end": 605,
"loc": {
"start": {
"line": 23,
"column": 12
},
"end": {
"line": 23,
"column": 23
}
},
"left": {
"type": "StringLiteral",
"start": 594,
"end": 598,
"loc": {
"start": {
"line": 23,
"column": 12
},
"end": {
"line": 23,
"column": 16
}
},
"extra": {
"rawValue": "on",
"raw": "'on'"
},
"value": "on"
},
"operator": "+",
"right": {
"type": "Identifier",
"start": 601,
"end": 605,
"loc": {
"start": {
"line": 23,
"column": 19
},
"end": {
"line": 23,
"column": 23
},
"identifierName": "type"
},
"name": "type"
}
},
"computed": true
},
"right": {
"type": "Identifier",
"start": 609,
"end": 613,
"loc": {
"start": {
"line": 23,
"column": 27
},
"end": {
"line": 23,
"column": 31
},
"identifierName": "func"
},
"name": "func"
}
}
}
],
"directives": []
}
}
}
],
"directives": []
}
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * DOM event utilities\n ",
"start": 30,
"end": 60,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 5,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Add event handler for specified event on passed element\n *\n * @param {DOMElement} obj Element\n * @param {String} type Event type\n * @param {Function} Handler\n * @param {Boolean} capture Specifiy whether the event should be executed in\n * the capturing or in the bubbling phase\n ",
"start": 62,
"end": 349,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 15,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Remove event handler for specified event on passed element\n *\n * @param {DOMElement} obj Element\n * @param {String} type Event type\n * @param {Function} Handler\n * @param {Boolean} capture Specifiy whether the event should be executed in\n * the capturing or in the bubbling phase\n ",
"start": 625,
"end": 915,
"loc": {
"start": {
"line": 27,
"column": 0
},
"end": {
"line": 35,
"column": 3
}
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * DOM event utilities\n ",
"start": 30,
"end": 60,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 5,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Add event handler for specified event on passed element\n *\n * @param {DOMElement} obj Element\n * @param {String} type Event type\n * @param {Function} Handler\n * @param {Boolean} capture Specifiy whether the event should be executed in\n * the capturing or in the bubbling phase\n ",
"start": 62,
"end": 349,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 15,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Remove event handler for specified event on passed element\n *\n * @param {DOMElement} obj Element\n * @param {String} type Event type\n * @param {Function} Handler\n * @param {Boolean} capture Specifiy whether the event should be executed in\n * the capturing or in the bubbling phase\n ",
"start": 625,
"end": 915,
"loc": {
"start": {
"line": 27,
"column": 0
},
"end": {
"line": 35,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 916,
"end": 1194,
"loc": {
"start": {
"line": 36,
"column": 0
},
"end": {
"line": 44,
"column": 2
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 923,
"end": 1194,
"loc": {
"start": {
"line": 36,
"column": 7
},
"end": {
"line": 44,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 929,
"end": 1193,
"loc": {
"start": {
"line": 36,
"column": 13
},
"end": {
"line": 44,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 929,
"end": 938,
"loc": {
"start": {
"line": 36,
"column": 13
},
"end": {
"line": 36,
"column": 22
},
"identifierName": "removeEvt"
},
"name": "removeEvt",
"leadingComments": null
},
"init": {
"type": "ArrowFunctionExpression",
"start": 941,
"end": 1193,
"loc": {
"start": {
"line": 36,
"column": 25
},
"end": {
"line": 44,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 929,
"end": 938,
"loc": {
"start": {
"line": 36,
"column": 13
},
"end": {
"line": 36,
"column": 22
},
"identifierName": "removeEvt"
},
"name": "removeEvt",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 942,
"end": 945,
"loc": {
"start": {
"line": 36,
"column": 26
},
"end": {
"line": 36,
"column": 29
},
"identifierName": "obj"
},
"name": "obj"
},
{
"type": "Identifier",
"start": 947,
"end": 951,
"loc": {
"start": {
"line": 36,
"column": 31
},
"end": {
"line": 36,
"column": 35
},
"identifierName": "type"
},
"name": "type"
},
{
"type": "Identifier",
"start": 953,
"end": 957,
"loc": {
"start": {
"line": 36,
"column": 37
},
"end": {
"line": 36,
"column": 41
},
"identifierName": "func"
},
"name": "func"
},
{
"type": "Identifier",
"start": 959,
"end": 966,
"loc": {
"start": {
"line": 36,
"column": 43
},
"end": {
"line": 36,
"column": 50
},
"identifierName": "capture"
},
"name": "capture"
}
],
"body": {
"type": "BlockStatement",
"start": 971,
"end": 1193,
"loc": {
"start": {
"line": 36,
"column": 55
},
"end": {
"line": 44,
"column": 1
}
},
"body": [
{
"type": "IfStatement",
"start": 977,
"end": 1191,
"loc": {
"start": {
"line": 37,
"column": 4
},
"end": {
"line": 43,
"column": 5
}
},
"test": {
"type": "MemberExpression",
"start": 981,
"end": 1004,
"loc": {
"start": {
"line": 37,
"column": 8
},
"end": {
"line": 37,
"column": 31
}
},
"object": {
"type": "Identifier",
"start": 981,
"end": 984,
"loc": {
"start": {
"line": 37,
"column": 8
},
"end": {
"line": 37,
"column": 11
},
"identifierName": "obj"
},
"name": "obj"
},
"property": {
"type": "Identifier",
"start": 985,
"end": 1004,
"loc": {
"start": {
"line": 37,
"column": 12
},
"end": {
"line": 37,
"column": 31
},
"identifierName": "removeEventListener"
},
"name": "removeEventListener"
},
"computed": false
},
"consequent": {
"type": "BlockStatement",
"start": 1006,
"end": 1067,
"loc": {
"start": {
"line": 37,
"column": 33
},
"end": {
"line": 39,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1016,
"end": 1061,
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 38,
"column": 53
}
},
"expression": {
"type": "CallExpression",
"start": 1016,
"end": 1060,
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 38,
"column": 52
}
},
"callee": {
"type": "MemberExpression",
"start": 1016,
"end": 1039,
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 38,
"column": 31
}
},
"object": {
"type": "Identifier",
"start": 1016,
"end": 1019,
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 38,
"column": 11
},
"identifierName": "obj"
},
"name": "obj"
},
"property": {
"type": "Identifier",
"start": 1020,
"end": 1039,
"loc": {
"start": {
"line": 38,
"column": 12
},
"end": {
"line": 38,
"column": 31
},
"identifierName": "removeEventListener"
},
"name": "removeEventListener"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 1040,
"end": 1044,
"loc": {
"start": {
"line": 38,
"column": 32
},
"end": {
"line": 38,
"column": 36
},
"identifierName": "type"
},
"name": "type"
},
{
"type": "Identifier",
"start": 1046,
"end": 1050,
"loc": {
"start": {
"line": 38,
"column": 38
},
"end": {
"line": 38,
"column": 42
},
"identifierName": "func"
},
"name": "func"
},
{
"type": "Identifier",
"start": 1052,
"end": 1059,
"loc": {
"start": {
"line": 38,
"column": 44
},
"end": {
"line": 38,
"column": 51
},
"identifierName": "capture"
},
"name": "capture"
}
]
}
}
],
"directives": []
},
"alternate": {
"type": "IfStatement",
"start": 1073,
"end": 1191,
"loc": {
"start": {
"line": 39,
"column": 11
},
"end": {
"line": 43,
"column": 5
}
},
"test": {
"type": "MemberExpression",
"start": 1077,
"end": 1092,
"loc": {
"start": {
"line": 39,
"column": 15
},
"end": {
"line": 39,
"column": 30
}
},
"object": {
"type": "Identifier",
"start": 1077,
"end": 1080,
"loc": {
"start": {
"line": 39,
"column": 15
},
"end": {
"line": 39,
"column": 18
},
"identifierName": "obj"
},
"name": "obj"
},
"property": {
"type": "Identifier",
"start": 1081,
"end": 1092,
"loc": {
"start": {
"line": 39,
"column": 19
},
"end": {
"line": 39,
"column": 30
},
"identifierName": "detachEvent"
},
"name": "detachEvent"
},
"computed": false
},
"consequent": {
"type": "BlockStatement",
"start": 1094,
"end": 1145,
"loc": {
"start": {
"line": 39,
"column": 32
},
"end": {
"line": 41,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1104,
"end": 1139,
"loc": {
"start": {
"line": 40,
"column": 8
},
"end": {
"line": 40,
"column": 43
}
},
"expression": {
"type": "CallExpression",
"start": 1104,
"end": 1138,
"loc": {
"start": {
"line": 40,
"column": 8
},
"end": {
"line": 40,
"column": 42
}
},
"callee": {
"type": "MemberExpression",
"start": 1104,
"end": 1119,
"loc": {
"start": {
"line": 40,
"column": 8
},
"end": {
"line": 40,
"column": 23
}
},
"object": {
"type": "Identifier",
"start": 1104,
"end": 1107,
"loc": {
"start": {
"line": 40,
"column": 8
},
"end": {
"line": 40,
"column": 11
},
"identifierName": "obj"
},
"name": "obj"
},
"property": {
"type": "Identifier",
"start": 1108,
"end": 1119,
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 23
},
"identifierName": "detachEvent"
},
"name": "detachEvent"
},
"computed": false
},
"arguments": [
{
"type": "BinaryExpression",
"start": 1120,
"end": 1131,
"loc": {
"start": {
"line": 40,
"column": 24
},
"end": {
"line": 40,
"column": 35
}
},
"left": {
"type": "StringLiteral",
"start": 1120,
"end": 1124,
"loc": {
"start": {
"line": 40,
"column": 24
},
"end": {
"line": 40,
"column": 28
}
},
"extra": {
"rawValue": "on",
"raw": "'on'"
},
"value": "on"
},
"operator": "+",
"right": {
"type": "Identifier",
"start": 1127,
"end": 1131,
"loc": {
"start": {
"line": 40,
"column": 31
},
"end": {
"line": 40,
"column": 35
},
"identifierName": "type"
},
"name": "type"
}
},
{
"type": "Identifier",
"start": 1133,
"end": 1137,
"loc": {
"start": {
"line": 40,
"column": 37
},
"end": {
"line": 40,
"column": 41
},
"identifierName": "func"
},
"name": "func"
}
]
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 1151,
"end": 1191,
"loc": {
"start": {
"line": 41,
"column": 11
},
"end": {
"line": 43,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1161,
"end": 1185,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 32
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1161,
"end": 1184,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 31
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1161,
"end": 1177,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 1161,
"end": 1164,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 11
},
"identifierName": "obj"
},
"name": "obj"
},
"property": {
"type": "BinaryExpression",
"start": 1165,
"end": 1176,
"loc": {
"start": {
"line": 42,
"column": 12
},
"end": {
"line": 42,
"column": 23
}
},
"left": {
"type": "StringLiteral",
"start": 1165,
"end": 1169,
"loc": {
"start": {
"line": 42,
"column": 12
},
"end": {
"line": 42,
"column": 16
}
},
"extra": {
"rawValue": "on",
"raw": "'on'"
},
"value": "on"
},
"operator": "+",
"right": {
"type": "Identifier",
"start": 1172,
"end": 1176,
"loc": {
"start": {
"line": 42,
"column": 19
},
"end": {
"line": 42,
"column": 23
},
"identifierName": "type"
},
"name": "type"
}
},
"computed": true
},
"right": {
"type": "NullLiteral",
"start": 1180,
"end": 1184,
"loc": {
"start": {
"line": 42,
"column": 27
},
"end": {
"line": 42,
"column": 31
}
}
}
}
}
],
"directives": []
}
}
}
],
"directives": []
}
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Remove event handler for specified event on passed element\n *\n * @param {DOMElement} obj Element\n * @param {String} type Event type\n * @param {Function} Handler\n * @param {Boolean} capture Specifiy whether the event should be executed in\n * the capturing or in the bubbling phase\n ",
"start": 625,
"end": 915,
"loc": {
"start": {
"line": 27,
"column": 0
},
"end": {
"line": 35,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Prevents further propagation of the current event in the bubbling phase\n *\n * @param {Event} evt Event on the DOM\n ",
"start": 1196,
"end": 1320,
"loc": {
"start": {
"line": 46,
"column": 0
},
"end": {
"line": 50,
"column": 3
}
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Remove event handler for specified event on passed element\n *\n * @param {DOMElement} obj Element\n * @param {String} type Event type\n * @param {Function} Handler\n * @param {Boolean} capture Specifiy whether the event should be executed in\n * the capturing or in the bubbling phase\n ",
"start": 625,
"end": 915,
"loc": {
"start": {
"line": 27,
"column": 0
},
"end": {
"line": 35,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Prevents further propagation of the current event in the bubbling phase\n *\n * @param {Event} evt Event on the DOM\n ",
"start": 1196,
"end": 1320,
"loc": {
"start": {
"line": 46,
"column": 0
},
"end": {
"line": 50,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 1321,
"end": 1519,
"loc": {
"start": {
"line": 51,
"column": 0
},
"end": {
"line": 60,
"column": 2
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 1328,
"end": 1519,
"loc": {
"start": {
"line": 51,
"column": 7
},
"end": {
"line": 60,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1334,
"end": 1518,
"loc": {
"start": {
"line": 51,
"column": 13
},
"end": {
"line": 60,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 1334,
"end": 1341,
"loc": {
"start": {
"line": 51,
"column": 13
},
"end": {
"line": 51,
"column": 20
},
"identifierName": "stopEvt"
},
"name": "stopEvt",
"leadingComments": null
},
"init": {
"type": "ArrowFunctionExpression",
"start": 1344,
"end": 1518,
"loc": {
"start": {
"line": 51,
"column": 23
},
"end": {
"line": 60,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 1334,
"end": 1341,
"loc": {
"start": {
"line": 51,
"column": 13
},
"end": {
"line": 51,
"column": 20
},
"identifierName": "stopEvt"
},
"name": "stopEvt",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1345,
"end": 1348,
"loc": {
"start": {
"line": 51,
"column": 24
},
"end": {
"line": 51,
"column": 27
},
"identifierName": "evt"
},
"name": "evt"
}
],
"body": {
"type": "BlockStatement",
"start": 1353,
"end": 1518,
"loc": {
"start": {
"line": 51,
"column": 32
},
"end": {
"line": 60,
"column": 1
}
},
"body": [
{
"type": "IfStatement",
"start": 1359,
"end": 1402,
"loc": {
"start": {
"line": 52,
"column": 4
},
"end": {
"line": 54,
"column": 5
}
},
"test": {
"type": "UnaryExpression",
"start": 1363,
"end": 1367,
"loc": {
"start": {
"line": 52,
"column": 8
},
"end": {
"line": 52,
"column": 12
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 1364,
"end": 1367,
"loc": {
"start": {
"line": 52,
"column": 9
},
"end": {
"line": 52,
"column": 12
},
"identifierName": "evt"
},
"name": "evt"
},
"extra": {
"parenthesizedArgument": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 1369,
"end": 1402,
"loc": {
"start": {
"line": 52,
"column": 14
},
"end": {
"line": 54,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1379,
"end": 1396,
"loc": {
"start": {
"line": 53,
"column": 8
},
"end": {
"line": 53,
"column": 25
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1379,
"end": 1395,
"loc": {
"start": {
"line": 53,
"column": 8
},
"end": {
"line": 53,
"column": 24
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 1379,
"end": 1382,
"loc": {
"start": {
"line": 53,
"column": 8
},
"end": {
"line": 53,
"column": 11
},
"identifierName": "evt"
},
"name": "evt"
},
"right": {
"type": "MemberExpression",
"start": 1385,
"end": 1395,
"loc": {
"start": {
"line": 53,
"column": 14
},
"end": {
"line": 53,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 1385,
"end": 1389,
"loc": {
"start": {
"line": 53,
"column": 14
},
"end": {
"line": 53,
"column": 18
},
"identifierName": "root"
},
"name": "root"
},
"property": {
"type": "Identifier",
"start": 1390,
"end": 1395,
"loc": {
"start": {
"line": 53,
"column": 19
},
"end": {
"line": 53,
"column": 24
},
"identifierName": "event"
},
"name": "event"
},
"computed": false
}
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "IfStatement",
"start": 1407,
"end": 1516,
"loc": {
"start": {
"line": 55,
"column": 4
},
"end": {
"line": 59,
"column": 5
}
},
"test": {
"type": "MemberExpression",
"start": 1411,
"end": 1430,
"loc": {
"start": {
"line": 55,
"column": 8
},
"end": {
"line": 55,
"column": 27
}
},
"object": {
"type": "Identifier",
"start": 1411,
"end": 1414,
"loc": {
"start": {
"line": 55,
"column": 8
},
"end": {
"line": 55,
"column": 11
},
"identifierName": "evt"
},
"name": "evt"
},
"property": {
"type": "Identifier",
"start": 1415,
"end": 1430,
"loc": {
"start": {
"line": 55,
"column": 12
},
"end": {
"line": 55,
"column": 27
},
"identifierName": "stopPropagation"
},
"name": "stopPropagation"
},
"computed": false
},
"consequent": {
"type": "BlockStatement",
"start": 1432,
"end": 1470,
"loc": {
"start": {
"line": 55,
"column": 29
},
"end": {
"line": 57,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1442,
"end": 1464,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 30
}
},
"expression": {
"type": "CallExpression",
"start": 1442,
"end": 1463,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 29
}
},
"callee": {
"type": "MemberExpression",
"start": 1442,
"end": 1461,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 27
}
},
"object": {
"type": "Identifier",
"start": 1442,
"end": 1445,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 11
},
"identifierName": "evt"
},
"name": "evt"
},
"property": {
"type": "Identifier",
"start": 1446,
"end": 1461,
"loc": {
"start": {
"line": 56,
"column": 12
},
"end": {
"line": 56,
"column": 27
},
"identifierName": "stopPropagation"
},
"name": "stopPropagation"
},
"computed": false
},
"arguments": []
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 1476,
"end": 1516,
"loc": {
"start": {
"line": 57,
"column": 11
},
"end": {
"line": 59,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1486,
"end": 1510,
"loc": {
"start": {
"line": 58,
"column": 8
},
"end": {
"line": 58,
"column": 32
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1486,
"end": 1509,
"loc": {
"start": {
"line": 58,
"column": 8
},
"end": {
"line": 58,
"column": 31
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1486,
"end": 1502,
"loc": {
"start": {
"line": 58,
"column": 8
},
"end": {
"line": 58,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 1486,
"end": 1489,
"loc": {
"start": {
"line": 58,
"column": 8
},
"end": {
"line": 58,
"column": 11
},
"identifierName": "evt"
},
"name": "evt"
},
"property": {
"type": "Identifier",
"start": 1490,
"end": 1502,
"loc": {
"start": {
"line": 58,
"column": 12
},
"end": {
"line": 58,
"column": 24
},
"identifierName": "cancelBubble"
},
"name": "cancelBubble"
},
"computed": false
},
"right": {
"type": "BooleanLiteral",
"start": 1505,
"end": 1509,
"loc": {
"start": {
"line": 58,
"column": 27
},
"end": {
"line": 58,
"column": 31
}
},
"value": true
}
}
}
],
"directives": []
}
}
],
"directives": []
}
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Prevents further propagation of the current event in the bubbling phase\n *\n * @param {Event} evt Event on the DOM\n ",
"start": 1196,
"end": 1320,
"loc": {
"start": {
"line": 46,
"column": 0
},
"end": {
"line": 50,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Cancels the event if it is cancelable, without stopping further\n * propagation of the event.\n *\n * @param {Event} evt Event on the DOM\n ",
"start": 1521,
"end": 1666,
"loc": {
"start": {
"line": 62,
"column": 0
},
"end": {
"line": 67,
"column": 3
}
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Prevents further propagation of the current event in the bubbling phase\n *\n * @param {Event} evt Event on the DOM\n ",
"start": 1196,
"end": 1320,
"loc": {
"start": {
"line": 46,
"column": 0
},
"end": {
"line": 50,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Cancels the event if it is cancelable, without stopping further\n * propagation of the event.\n *\n * @param {Event} evt Event on the DOM\n ",
"start": 1521,
"end": 1666,
"loc": {
"start": {
"line": 62,
"column": 0
},
"end": {
"line": 67,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 1667,
"end": 1865,
"loc": {
"start": {
"line": 68,
"column": 0
},
"end": {
"line": 77,
"column": 2
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 1674,
"end": 1865,
"loc": {
"start": {
"line": 68,
"column": 7
},
"end": {
"line": 77,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 1680,
"end": 1864,
"loc": {
"start": {
"line": 68,
"column": 13
},
"end": {
"line": 77,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 1680,
"end": 1689,
"loc": {
"start": {
"line": 68,
"column": 13
},
"end": {
"line": 68,
"column": 22
},
"identifierName": "cancelEvt"
},
"name": "cancelEvt",
"leadingComments": null
},
"init": {
"type": "ArrowFunctionExpression",
"start": 1692,
"end": 1864,
"loc": {
"start": {
"line": 68,
"column": 25
},
"end": {
"line": 77,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 1680,
"end": 1689,
"loc": {
"start": {
"line": 68,
"column": 13
},
"end": {
"line": 68,
"column": 22
},
"identifierName": "cancelEvt"
},
"name": "cancelEvt",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 1693,
"end": 1696,
"loc": {
"start": {
"line": 68,
"column": 26
},
"end": {
"line": 68,
"column": 29
},
"identifierName": "evt"
},
"name": "evt"
}
],
"body": {
"type": "BlockStatement",
"start": 1701,
"end": 1864,
"loc": {
"start": {
"line": 68,
"column": 34
},
"end": {
"line": 77,
"column": 1
}
},
"body": [
{
"type": "IfStatement",
"start": 1707,
"end": 1750,
"loc": {
"start": {
"line": 69,
"column": 4
},
"end": {
"line": 71,
"column": 5
}
},
"test": {
"type": "UnaryExpression",
"start": 1711,
"end": 1715,
"loc": {
"start": {
"line": 69,
"column": 8
},
"end": {
"line": 69,
"column": 12
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 1712,
"end": 1715,
"loc": {
"start": {
"line": 69,
"column": 9
},
"end": {
"line": 69,
"column": 12
},
"identifierName": "evt"
},
"name": "evt"
},
"extra": {
"parenthesizedArgument": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 1717,
"end": 1750,
"loc": {
"start": {
"line": 69,
"column": 14
},
"end": {
"line": 71,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1727,
"end": 1744,
"loc": {
"start": {
"line": 70,
"column": 8
},
"end": {
"line": 70,
"column": 25
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1727,
"end": 1743,
"loc": {
"start": {
"line": 70,
"column": 8
},
"end": {
"line": 70,
"column": 24
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 1727,
"end": 1730,
"loc": {
"start": {
"line": 70,
"column": 8
},
"end": {
"line": 70,
"column": 11
},
"identifierName": "evt"
},
"name": "evt"
},
"right": {
"type": "MemberExpression",
"start": 1733,
"end": 1743,
"loc": {
"start": {
"line": 70,
"column": 14
},
"end": {
"line": 70,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 1733,
"end": 1737,
"loc": {
"start": {
"line": 70,
"column": 14
},
"end": {
"line": 70,
"column": 18
},
"identifierName": "root"
},
"name": "root"
},
"property": {
"type": "Identifier",
"start": 1738,
"end": 1743,
"loc": {
"start": {
"line": 70,
"column": 19
},
"end": {
"line": 70,
"column": 24
},
"identifierName": "event"
},
"name": "event"
},
"computed": false
}
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "IfStatement",
"start": 1755,
"end": 1862,
"loc": {
"start": {
"line": 72,
"column": 4
},
"end": {
"line": 76,
"column": 5
}
},
"test": {
"type": "MemberExpression",
"start": 1759,
"end": 1777,
"loc": {
"start": {
"line": 72,
"column": 8
},
"end": {
"line": 72,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 1759,
"end": 1762,
"loc": {
"start": {
"line": 72,
"column": 8
},
"end": {
"line": 72,
"column": 11
},
"identifierName": "evt"
},
"name": "evt"
},
"property": {
"type": "Identifier",
"start": 1763,
"end": 1777,
"loc": {
"start": {
"line": 72,
"column": 12
},
"end": {
"line": 72,
"column": 26
},
"identifierName": "preventDefault"
},
"name": "preventDefault"
},
"computed": false
},
"consequent": {
"type": "BlockStatement",
"start": 1779,
"end": 1816,
"loc": {
"start": {
"line": 72,
"column": 28
},
"end": {
"line": 74,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1789,
"end": 1810,
"loc": {
"start": {
"line": 73,
"column": 8
},
"end": {
"line": 73,
"column": 29
}
},
"expression": {
"type": "CallExpression",
"start": 1789,
"end": 1809,
"loc": {
"start": {
"line": 73,
"column": 8
},
"end": {
"line": 73,
"column": 28
}
},
"callee": {
"type": "MemberExpression",
"start": 1789,
"end": 1807,
"loc": {
"start": {
"line": 73,
"column": 8
},
"end": {
"line": 73,
"column": 26
}
},
"object": {
"type": "Identifier",
"start": 1789,
"end": 1792,
"loc": {
"start": {
"line": 73,
"column": 8
},
"end": {
"line": 73,
"column": 11
},
"identifierName": "evt"
},
"name": "evt"
},
"property": {
"type": "Identifier",
"start": 1793,
"end": 1807,
"loc": {
"start": {
"line": 73,
"column": 12
},
"end": {
"line": 73,
"column": 26
},
"identifierName": "preventDefault"
},
"name": "preventDefault"
},
"computed": false
},
"arguments": []
}
}
],
"directives": []
},
"alternate": {
"type": "BlockStatement",
"start": 1822,
"end": 1862,
"loc": {
"start": {
"line": 74,
"column": 11
},
"end": {
"line": 76,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 1832,
"end": 1856,
"loc": {
"start": {
"line": 75,
"column": 8
},
"end": {
"line": 75,
"column": 32
}
},
"expression": {
"type": "AssignmentExpression",
"start": 1832,
"end": 1855,
"loc": {
"start": {
"line": 75,
"column": 8
},
"end": {
"line": 75,
"column": 31
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 1832,
"end": 1847,
"loc": {
"start": {
"line": 75,
"column": 8
},
"end": {
"line": 75,
"column": 23
}
},
"object": {
"type": "Identifier",
"start": 1832,
"end": 1835,
"loc": {
"start": {
"line": 75,
"column": 8
},
"end": {
"line": 75,
"column": 11
},
"identifierName": "evt"
},
"name": "evt"
},
"property": {
"type": "Identifier",
"start": 1836,
"end": 1847,
"loc": {
"start": {
"line": 75,
"column": 12
},
"end": {
"line": 75,
"column": 23
},
"identifierName": "returnValue"
},
"name": "returnValue"
},
"computed": false
},
"right": {
"type": "BooleanLiteral",
"start": 1850,
"end": 1855,
"loc": {
"start": {
"line": 75,
"column": 26
},
"end": {
"line": 75,
"column": 31
}
},
"value": false
}
}
}
],
"directives": []
}
}
],
"directives": []
}
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Cancels the event if it is cancelable, without stopping further\n * propagation of the event.\n *\n * @param {Event} evt Event on the DOM\n ",
"start": 1521,
"end": 1666,
"loc": {
"start": {
"line": 62,
"column": 0
},
"end": {
"line": 67,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Reference to the object that dispatched the event\n *\n * @param {Event} evt Event on the DOM\n * @returns {DOMElement}\n ",
"start": 1867,
"end": 1994,
"loc": {
"start": {
"line": 79,
"column": 0
},
"end": {
"line": 84,
"column": 3
}
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Cancels the event if it is cancelable, without stopping further\n * propagation of the event.\n *\n * @param {Event} evt Event on the DOM\n ",
"start": 1521,
"end": 1666,
"loc": {
"start": {
"line": 62,
"column": 0
},
"end": {
"line": 67,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Reference to the object that dispatched the event\n *\n * @param {Event} evt Event on the DOM\n * @returns {DOMElement}\n ",
"start": 1867,
"end": 1994,
"loc": {
"start": {
"line": 79,
"column": 0
},
"end": {
"line": 84,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 1995,
"end": 2122,
"loc": {
"start": {
"line": 85,
"column": 0
},
"end": {
"line": 90,
"column": 2
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 2002,
"end": 2122,
"loc": {
"start": {
"line": 85,
"column": 7
},
"end": {
"line": 90,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2008,
"end": 2121,
"loc": {
"start": {
"line": 85,
"column": 13
},
"end": {
"line": 90,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 2008,
"end": 2017,
"loc": {
"start": {
"line": 85,
"column": 13
},
"end": {
"line": 85,
"column": 22
},
"identifierName": "targetEvt"
},
"name": "targetEvt",
"leadingComments": null
},
"init": {
"type": "ArrowFunctionExpression",
"start": 2020,
"end": 2121,
"loc": {
"start": {
"line": 85,
"column": 25
},
"end": {
"line": 90,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 2008,
"end": 2017,
"loc": {
"start": {
"line": 85,
"column": 13
},
"end": {
"line": 85,
"column": 22
},
"identifierName": "targetEvt"
},
"name": "targetEvt",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 2021,
"end": 2024,
"loc": {
"start": {
"line": 85,
"column": 26
},
"end": {
"line": 85,
"column": 29
},
"identifierName": "evt"
},
"name": "evt"
}
],
"body": {
"type": "BlockStatement",
"start": 2029,
"end": 2121,
"loc": {
"start": {
"line": 85,
"column": 34
},
"end": {
"line": 90,
"column": 1
}
},
"body": [
{
"type": "IfStatement",
"start": 2035,
"end": 2078,
"loc": {
"start": {
"line": 86,
"column": 4
},
"end": {
"line": 88,
"column": 5
}
},
"test": {
"type": "UnaryExpression",
"start": 2039,
"end": 2043,
"loc": {
"start": {
"line": 86,
"column": 8
},
"end": {
"line": 86,
"column": 12
}
},
"operator": "!",
"prefix": true,
"argument": {
"type": "Identifier",
"start": 2040,
"end": 2043,
"loc": {
"start": {
"line": 86,
"column": 9
},
"end": {
"line": 86,
"column": 12
},
"identifierName": "evt"
},
"name": "evt"
},
"extra": {
"parenthesizedArgument": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 2045,
"end": 2078,
"loc": {
"start": {
"line": 86,
"column": 14
},
"end": {
"line": 88,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 2055,
"end": 2072,
"loc": {
"start": {
"line": 87,
"column": 8
},
"end": {
"line": 87,
"column": 25
}
},
"expression": {
"type": "AssignmentExpression",
"start": 2055,
"end": 2071,
"loc": {
"start": {
"line": 87,
"column": 8
},
"end": {
"line": 87,
"column": 24
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 2055,
"end": 2058,
"loc": {
"start": {
"line": 87,
"column": 8
},
"end": {
"line": 87,
"column": 11
},
"identifierName": "evt"
},
"name": "evt"
},
"right": {
"type": "MemberExpression",
"start": 2061,
"end": 2071,
"loc": {
"start": {
"line": 87,
"column": 14
},
"end": {
"line": 87,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 2061,
"end": 2065,
"loc": {
"start": {
"line": 87,
"column": 14
},
"end": {
"line": 87,
"column": 18
},
"identifierName": "root"
},
"name": "root"
},
"property": {
"type": "Identifier",
"start": 2066,
"end": 2071,
"loc": {
"start": {
"line": 87,
"column": 19
},
"end": {
"line": 87,
"column": 24
},
"identifierName": "event"
},
"name": "event"
},
"computed": false
}
}
}
],
"directives": []
},
"alternate": null
},
{
"type": "ReturnStatement",
"start": 2083,
"end": 2119,
"loc": {
"start": {
"line": 89,
"column": 4
},
"end": {
"line": 89,
"column": 40
}
},
"argument": {
"type": "LogicalExpression",
"start": 2090,
"end": 2118,
"loc": {
"start": {
"line": 89,
"column": 11
},
"end": {
"line": 89,
"column": 39
}
},
"left": {
"type": "MemberExpression",
"start": 2090,
"end": 2100,
"loc": {
"start": {
"line": 89,
"column": 11
},
"end": {
"line": 89,
"column": 21
}
},
"object": {
"type": "Identifier",
"start": 2090,
"end": 2093,
"loc": {
"start": {
"line": 89,
"column": 11
},
"end": {
"line": 89,
"column": 14
},
"identifierName": "evt"
},
"name": "evt"
},
"property": {
"type": "Identifier",
"start": 2094,
"end": 2100,
"loc": {
"start": {
"line": 89,
"column": 15
},
"end": {
"line": 89,
"column": 21
},
"identifierName": "target"
},
"name": "target"
},
"computed": false
},
"operator": "||",
"right": {
"type": "MemberExpression",
"start": 2104,
"end": 2118,
"loc": {
"start": {
"line": 89,
"column": 25
},
"end": {
"line": 89,
"column": 39
}
},
"object": {
"type": "Identifier",
"start": 2104,
"end": 2107,
"loc": {
"start": {
"line": 89,
"column": 25
},
"end": {
"line": 89,
"column": 28
},
"identifierName": "evt"
},
"name": "evt"
},
"property": {
"type": "Identifier",
"start": 2108,
"end": 2118,
"loc": {
"start": {
"line": 89,
"column": 29
},
"end": {
"line": 89,
"column": 39
},
"identifierName": "srcElement"
},
"name": "srcElement"
},
"computed": false
}
}
}
],
"directives": []
}
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Reference to the object that dispatched the event\n *\n * @param {Event} evt Event on the DOM\n * @returns {DOMElement}\n ",
"start": 1867,
"end": 1994,
"loc": {
"start": {
"line": 79,
"column": 0
},
"end": {
"line": 84,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns the Unicode value of pressed key\n *\n * @param {Event} evt Event on the DOM\n * @returns {Number}\n ",
"start": 2124,
"end": 2238,
"loc": {
"start": {
"line": 92,
"column": 0
},
"end": {
"line": 97,
"column": 3
}
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Reference to the object that dispatched the event\n *\n * @param {Event} evt Event on the DOM\n * @returns {DOMElement}\n ",
"start": 1867,
"end": 1994,
"loc": {
"start": {
"line": 79,
"column": 0
},
"end": {
"line": 84,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns the Unicode value of pressed key\n *\n * @param {Event} evt Event on the DOM\n * @returns {Number}\n ",
"start": 2124,
"end": 2238,
"loc": {
"start": {
"line": 92,
"column": 0
},
"end": {
"line": 97,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 2239,
"end": 2383,
"loc": {
"start": {
"line": 98,
"column": 0
},
"end": {
"line": 101,
"column": 2
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 2246,
"end": 2383,
"loc": {
"start": {
"line": 98,
"column": 7
},
"end": {
"line": 101,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2252,
"end": 2382,
"loc": {
"start": {
"line": 98,
"column": 13
},
"end": {
"line": 101,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 2252,
"end": 2259,
"loc": {
"start": {
"line": 98,
"column": 13
},
"end": {
"line": 98,
"column": 20
},
"identifierName": "keyCode"
},
"name": "keyCode",
"leadingComments": null
},
"init": {
"type": "ArrowFunctionExpression",
"start": 2262,
"end": 2382,
"loc": {
"start": {
"line": 98,
"column": 23
},
"end": {
"line": 101,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 2252,
"end": 2259,
"loc": {
"start": {
"line": 98,
"column": 13
},
"end": {
"line": 98,
"column": 20
},
"identifierName": "keyCode"
},
"name": "keyCode",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 2263,
"end": 2266,
"loc": {
"start": {
"line": 98,
"column": 24
},
"end": {
"line": 98,
"column": 27
},
"identifierName": "evt"
},
"name": "evt"
}
],
"body": {
"type": "BlockStatement",
"start": 2271,
"end": 2382,
"loc": {
"start": {
"line": 98,
"column": 32
},
"end": {
"line": 101,
"column": 1
}
},
"body": [
{
"type": "ReturnStatement",
"start": 2277,
"end": 2380,
"loc": {
"start": {
"line": 99,
"column": 4
},
"end": {
"line": 100,
"column": 66
}
},
"argument": {
"type": "ConditionalExpression",
"start": 2284,
"end": 2379,
"loc": {
"start": {
"line": 99,
"column": 11
},
"end": {
"line": 100,
"column": 65
}
},
"test": {
"type": "MemberExpression",
"start": 2284,
"end": 2296,
"loc": {
"start": {
"line": 99,
"column": 11
},
"end": {
"line": 99,
"column": 23
}
},
"object": {
"type": "Identifier",
"start": 2284,
"end": 2287,
"loc": {
"start": {
"line": 99,
"column": 11
},
"end": {
"line": 99,
"column": 14
},
"identifierName": "evt"
},
"name": "evt"
},
"property": {
"type": "Identifier",
"start": 2288,
"end": 2296,
"loc": {
"start": {
"line": 99,
"column": 15
},
"end": {
"line": 99,
"column": 23
},
"identifierName": "charCode"
},
"name": "charCode"
},
"computed": false
},
"consequent": {
"type": "MemberExpression",
"start": 2299,
"end": 2311,
"loc": {
"start": {
"line": 99,
"column": 26
},
"end": {
"line": 99,
"column": 38
}
},
"object": {
"type": "Identifier",
"start": 2299,
"end": 2302,
"loc": {
"start": {
"line": 99,
"column": 26
},
"end": {
"line": 99,
"column": 29
},
"identifierName": "evt"
},
"name": "evt"
},
"property": {
"type": "Identifier",
"start": 2303,
"end": 2311,
"loc": {
"start": {
"line": 99,
"column": 30
},
"end": {
"line": 99,
"column": 38
},
"identifierName": "charCode"
},
"name": "charCode"
},
"computed": false
},
"alternate": {
"type": "ConditionalExpression",
"start": 2323,
"end": 2378,
"loc": {
"start": {
"line": 100,
"column": 9
},
"end": {
"line": 100,
"column": 64
}
},
"test": {
"type": "MemberExpression",
"start": 2323,
"end": 2334,
"loc": {
"start": {
"line": 100,
"column": 9
},
"end": {
"line": 100,
"column": 20
}
},
"object": {
"type": "Identifier",
"start": 2323,
"end": 2326,
"loc": {
"start": {
"line": 100,
"column": 9
},
"end": {
"line": 100,
"column": 12
},
"identifierName": "evt"
},
"name": "evt"
},
"property": {
"type": "Identifier",
"start": 2327,
"end": 2334,
"loc": {
"start": {
"line": 100,
"column": 13
},
"end": {
"line": 100,
"column": 20
},
"identifierName": "keyCode"
},
"name": "keyCode"
},
"computed": false
},
"consequent": {
"type": "MemberExpression",
"start": 2337,
"end": 2348,
"loc": {
"start": {
"line": 100,
"column": 23
},
"end": {
"line": 100,
"column": 34
}
},
"object": {
"type": "Identifier",
"start": 2337,
"end": 2340,
"loc": {
"start": {
"line": 100,
"column": 23
},
"end": {
"line": 100,
"column": 26
},
"identifierName": "evt"
},
"name": "evt"
},
"property": {
"type": "Identifier",
"start": 2341,
"end": 2348,
"loc": {
"start": {
"line": 100,
"column": 27
},
"end": {
"line": 100,
"column": 34
},
"identifierName": "keyCode"
},
"name": "keyCode"
},
"computed": false
},
"alternate": {
"type": "ConditionalExpression",
"start": 2352,
"end": 2377,
"loc": {
"start": {
"line": 100,
"column": 38
},
"end": {
"line": 100,
"column": 63
}
},
"test": {
"type": "MemberExpression",
"start": 2352,
"end": 2361,
"loc": {
"start": {
"line": 100,
"column": 38
},
"end": {
"line": 100,
"column": 47
}
},
"object": {
"type": "Identifier",
"start": 2352,
"end": 2355,
"loc": {
"start": {
"line": 100,
"column": 38
},
"end": {
"line": 100,
"column": 41
},
"identifierName": "evt"
},
"name": "evt"
},
"property": {
"type": "Identifier",
"start": 2356,
"end": 2361,
"loc": {
"start": {
"line": 100,
"column": 42
},
"end": {
"line": 100,
"column": 47
},
"identifierName": "which"
},
"name": "which"
},
"computed": false
},
"consequent": {
"type": "MemberExpression",
"start": 2364,
"end": 2373,
"loc": {
"start": {
"line": 100,
"column": 50
},
"end": {
"line": 100,
"column": 59
}
},
"object": {
"type": "Identifier",
"start": 2364,
"end": 2367,
"loc": {
"start": {
"line": 100,
"column": 50
},
"end": {
"line": 100,
"column": 53
},
"identifierName": "evt"
},
"name": "evt"
},
"property": {
"type": "Identifier",
"start": 2368,
"end": 2373,
"loc": {
"start": {
"line": 100,
"column": 54
},
"end": {
"line": 100,
"column": 59
},
"identifierName": "which"
},
"name": "which"
},
"computed": false
},
"alternate": {
"type": "NumericLiteral",
"start": 2376,
"end": 2377,
"loc": {
"start": {
"line": 100,
"column": 62
},
"end": {
"line": 100,
"column": 63
}
},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
},
"extra": {
"parenthesized": true,
"parenStart": 2351
}
},
"extra": {
"parenthesized": true,
"parenStart": 2322
}
}
}
}
],
"directives": []
}
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns the Unicode value of pressed key\n *\n * @param {Event} evt Event on the DOM\n * @returns {Number}\n ",
"start": 2124,
"end": 2238,
"loc": {
"start": {
"line": 92,
"column": 0
},
"end": {
"line": 97,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Check code of pressed key is one of the expected key codes\n *\n * @param {Event} evt key event\n * @param {Array} keyCodes list of keycodes to check\n ",
"start": 2385,
"end": 2542,
"loc": {
"start": {
"line": 103,
"column": 0
},
"end": {
"line": 108,
"column": 3
}
}
}
]
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Returns the Unicode value of pressed key\n *\n * @param {Event} evt Event on the DOM\n * @returns {Number}\n ",
"start": 2124,
"end": 2238,
"loc": {
"start": {
"line": 92,
"column": 0
},
"end": {
"line": 97,
"column": 3
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": "*\n * Check code of pressed key is one of the expected key codes\n *\n * @param {Event} evt key event\n * @param {Array} keyCodes list of keycodes to check\n ",
"start": 2385,
"end": 2542,
"loc": {
"start": {
"line": 103,
"column": 0
},
"end": {
"line": 108,
"column": 3
}
}
}
]
},
{
"type": "ExportNamedDeclaration",
"start": 2543,
"end": 2649,
"loc": {
"start": {
"line": 109,
"column": 0
},
"end": {
"line": 111,
"column": 2
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 2550,
"end": 2649,
"loc": {
"start": {
"line": 109,
"column": 7
},
"end": {
"line": 111,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 2556,
"end": 2648,
"loc": {
"start": {
"line": 109,
"column": 13
},
"end": {
"line": 111,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 2556,
"end": 2568,
"loc": {
"start": {
"line": 109,
"column": 13
},
"end": {
"line": 109,
"column": 25
},
"identifierName": "isKeyPressed"
},
"name": "isKeyPressed",
"leadingComments": null
},
"init": {
"type": "ArrowFunctionExpression",
"start": 2571,
"end": 2648,
"loc": {
"start": {
"line": 109,
"column": 28
},
"end": {
"line": 111,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 2556,
"end": 2568,
"loc": {
"start": {
"line": 109,
"column": 13
},
"end": {
"line": 109,
"column": 25
},
"identifierName": "isKeyPressed"
},
"name": "isKeyPressed",
"leadingComments": null
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 2572,
"end": 2575,
"loc": {
"start": {
"line": 109,
"column": 29
},
"end": {
"line": 109,
"column": 32
},
"identifierName": "evt"
},
"name": "evt"
},
{
"type": "AssignmentPattern",
"start": 2577,
"end": 2590,
"loc": {
"start": {
"line": 109,
"column": 34
},
"end": {
"line": 109,
"column": 47
}
},
"left": {
"type": "Identifier",
"start": 2577,
"end": 2585,
"loc": {
"start": {
"line": 109,
"column": 34
},
"end": {
"line": 109,
"column": 42
},
"identifierName": "keyCodes"
},
"name": "keyCodes"
},
"right": {
"type": "ArrayExpression",
"start": 2588,
"end": 2590,
"loc": {
"start": {
"line": 109,
"column": 45
},
"end": {
"line": 109,
"column": 47
}
},
"elements": []
}
}
],
"body": {
"type": "BlockStatement",
"start": 2595,
"end": 2648,
"loc": {
"start": {
"line": 109,
"column": 52
},
"end": {
"line": 111,
"column": 1
}
},
"body": [
{
"type": "ReturnStatement",
"start": 2601,
"end": 2646,
"loc": {
"start": {
"line": 110,
"column": 4
},
"end": {
"line": 110,
"column": 49
}
},
"argument": {
"type": "BinaryExpression",
"start": 2608,
"end": 2645,
"loc": {
"start": {
"line": 110,
"column": 11
},
"end": {
"line": 110,
"column": 48
}
},
"left": {
"type": "CallExpression",
"start": 2608,
"end": 2638,
"loc": {
"start": {
"line": 110,
"column": 11
},
"end": {
"line": 110,
"column": 41
}
},
"callee": {
"type": "MemberExpression",
"start": 2608,
"end": 2624,
"loc": {
"start": {
"line": 110,
"column": 11
},
"end": {
"line": 110,
"column": 27
}
},
"object": {
"type": "Identifier",
"start": 2608,
"end": 2616,
"loc": {
"start": {
"line": 110,
"column": 11
},
"end": {
"line": 110,
"column": 19
},
"identifierName": "keyCodes"
},
"name": "keyCodes"
},
"property": {
"type": "Identifier",
"start": 2617,
"end": 2624,
"loc": {
"start": {
"line": 110,
"column": 20
},
"end": {
"line": 110,
"column": 27
},
"identifierName": "indexOf"
},
"name": "indexOf"
},
"computed": false
},
"arguments": [
{
"type": "CallExpression",
"start": 2625,
"end": 2637,
"loc": {
"start": {
"line": 110,
"column": 28
},
"end": {
"line": 110,
"column": 40
}
},
"callee": {
"type": "Identifier",
"start": 2625,
"end": 2632,
"loc": {
"start": {
"line": 110,
"column": 28
},
"end": {
"line": 110,
"column": 35
},
"identifierName": "keyCode"
},
"name": "keyCode"
},
"arguments": [
{
"type": "Identifier",
"start": 2633,
"end": 2636,
"loc": {
"start": {
"line": 110,
"column": 36
},
"end": {
"line": 110,
"column": 39
},
"identifierName": "evt"
},
"name": "evt"
}
]
}
]
},
"operator": "!==",
"right": {
"type": "UnaryExpression",
"start": 2643,
"end": 2645,
"loc": {
"start": {
"line": 110,
"column": 46
},
"end": {
"line": 110,
"column": 48
}
},
"operator": "-",
"prefix": true,
"argument": {
"type": "NumericLiteral",
"start": 2644,
"end": 2645,
"loc": {
"start": {
"line": 110,
"column": 47
},
"end": {
"line": 110,
"column": 48
}
},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
},
"extra": {
"parenthesizedArgument": false
}
}
}
}
],
"directives": []
}
},
"leadingComments": null
}
],
"kind": "const",
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Check code of pressed key is one of the expected key codes\n *\n * @param {Event} evt key event\n * @param {Array} keyCodes list of keycodes to check\n ",
"start": 2385,
"end": 2542,
"loc": {
"start": {
"line": 103,
"column": 0
},
"end": {
"line": 108,
"column": 3
}
}
}
],
"trailingComments": []
},
"leadingComments": [
{
"type": "CommentBlock",
"value": "*\n * Check code of pressed key is one of the expected key codes\n *\n * @param {Event} evt key event\n * @param {Array} keyCodes list of keycodes to check\n ",
"start": 2385,
"end": 2542,
"loc": {
"start": {
"line": 103,
"column": 0
},
"end": {
"line": 108,
"column": 3
}
}
}
]
}
],
"directives": []
},
"comments": [
{
"type": "CommentBlock",
"value": "*\n * DOM event utilities\n ",
"start": 30,
"end": 60,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 5,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Add event handler for specified event on passed element\n *\n * @param {DOMElement} obj Element\n * @param {String} type Event type\n * @param {Function} Handler\n * @param {Boolean} capture Specifiy whether the event should be executed in\n * the capturing or in the bubbling phase\n ",
"start": 62,
"end": 349,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 15,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Remove event handler for specified event on passed element\n *\n * @param {DOMElement} obj Element\n * @param {String} type Event type\n * @param {Function} Handler\n * @param {Boolean} capture Specifiy whether the event should be executed in\n * the capturing or in the bubbling phase\n ",
"start": 625,
"end": 915,
"loc": {
"start": {
"line": 27,
"column": 0
},
"end": {
"line": 35,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Prevents further propagation of the current event in the bubbling phase\n *\n * @param {Event} evt Event on the DOM\n ",
"start": 1196,
"end": 1320,
"loc": {
"start": {
"line": 46,
"column": 0
},
"end": {
"line": 50,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Cancels the event if it is cancelable, without stopping further\n * propagation of the event.\n *\n * @param {Event} evt Event on the DOM\n ",
"start": 1521,
"end": 1666,
"loc": {
"start": {
"line": 62,
"column": 0
},
"end": {
"line": 67,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Reference to the object that dispatched the event\n *\n * @param {Event} evt Event on the DOM\n * @returns {DOMElement}\n ",
"start": 1867,
"end": 1994,
"loc": {
"start": {
"line": 79,
"column": 0
},
"end": {
"line": 84,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Returns the Unicode value of pressed key\n *\n * @param {Event} evt Event on the DOM\n * @returns {Number}\n ",
"start": 2124,
"end": 2238,
"loc": {
"start": {
"line": 92,
"column": 0
},
"end": {
"line": 97,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Check code of pressed key is one of the expected key codes\n *\n * @param {Event} evt key event\n * @param {Array} keyCodes list of keycodes to check\n ",
"start": 2385,
"end": 2542,
"loc": {
"start": {
"line": 103,
"column": 0
},
"end": {
"line": 108,
"column": 3
}
}
}
],
"tokens": [
{
"type": {
"label": "import",
"keyword": "import",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "import",
"start": 0,
"end": 6,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 6
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 7,
"end": 8,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 8,
"end": 12,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 12
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 12,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 12
},
"end": {
"line": 1,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "from",
"start": 14,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 14
},
"end": {
"line": 1,
"column": 18
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "./root",
"start": 19,
"end": 27,
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 27
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 27,
"end": 28,
"loc": {
"start": {
"line": 1,
"column": 27
},
"end": {
"line": 1,
"column": 28
}
}
},
{
"type": "CommentBlock",
"value": "*\n * DOM event utilities\n ",
"start": 30,
"end": 60,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 5,
"column": 3
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Add event handler for specified event on passed element\n *\n * @param {DOMElement} obj Element\n * @param {String} type Event type\n * @param {Function} Handler\n * @param {Boolean} capture Specifiy whether the event should be executed in\n * the capturing or in the bubbling phase\n ",
"start": 62,
"end": 349,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 15,
"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": 350,
"end": 356,
"loc": {
"start": {
"line": 16,
"column": 0
},
"end": {
"line": 16,
"column": 6
}
}
},
{
"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": 357,
"end": 362,
"loc": {
"start": {
"line": 16,
"column": 7
},
"end": {
"line": 16,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "addEvt",
"start": 363,
"end": 369,
"loc": {
"start": {
"line": 16,
"column": 13
},
"end": {
"line": 16,
"column": 19
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 370,
"end": 371,
"loc": {
"start": {
"line": 16,
"column": 20
},
"end": {
"line": 16,
"column": 21
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 372,
"end": 373,
"loc": {
"start": {
"line": 16,
"column": 22
},
"end": {
"line": 16,
"column": 23
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "obj",
"start": 373,
"end": 376,
"loc": {
"start": {
"line": 16,
"column": 23
},
"end": {
"line": 16,
"column": 26
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 376,
"end": 377,
"loc": {
"start": {
"line": 16,
"column": 26
},
"end": {
"line": 16,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "type",
"start": 378,
"end": 382,
"loc": {
"start": {
"line": 16,
"column": 28
},
"end": {
"line": 16,
"column": 32
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 382,
"end": 383,
"loc": {
"start": {
"line": 16,
"column": 32
},
"end": {
"line": 16,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "func",
"start": 384,
"end": 388,
"loc": {
"start": {
"line": 16,
"column": 34
},
"end": {
"line": 16,
"column": 38
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 388,
"end": 389,
"loc": {
"start": {
"line": 16,
"column": 38
},
"end": {
"line": 16,
"column": 39
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "capture",
"start": 390,
"end": 397,
"loc": {
"start": {
"line": 16,
"column": 40
},
"end": {
"line": 16,
"column": 47
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 397,
"end": 398,
"loc": {
"start": {
"line": 16,
"column": 47
},
"end": {
"line": 16,
"column": 48
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 399,
"end": 401,
"loc": {
"start": {
"line": 16,
"column": 49
},
"end": {
"line": 16,
"column": 51
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 402,
"end": 403,
"loc": {
"start": {
"line": 16,
"column": 52
},
"end": {
"line": 16,
"column": 53
}
}
},
{
"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": 408,
"end": 410,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 411,
"end": 412,
"loc": {
"start": {
"line": 17,
"column": 7
},
"end": {
"line": 17,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "obj",
"start": 412,
"end": 415,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 415,
"end": 416,
"loc": {
"start": {
"line": 17,
"column": 11
},
"end": {
"line": 17,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "addEventListener",
"start": 416,
"end": 432,
"loc": {
"start": {
"line": 17,
"column": 12
},
"end": {
"line": 17,
"column": 28
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 432,
"end": 433,
"loc": {
"start": {
"line": 17,
"column": 28
},
"end": {
"line": 17,
"column": 29
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 434,
"end": 435,
"loc": {
"start": {
"line": 17,
"column": 30
},
"end": {
"line": 17,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "obj",
"start": 444,
"end": 447,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 447,
"end": 448,
"loc": {
"start": {
"line": 18,
"column": 11
},
"end": {
"line": 18,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "addEventListener",
"start": 448,
"end": 464,
"loc": {
"start": {
"line": 18,
"column": 12
},
"end": {
"line": 18,
"column": 28
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 464,
"end": 465,
"loc": {
"start": {
"line": 18,
"column": 28
},
"end": {
"line": 18,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "type",
"start": 465,
"end": 469,
"loc": {
"start": {
"line": 18,
"column": 29
},
"end": {
"line": 18,
"column": 33
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 469,
"end": 470,
"loc": {
"start": {
"line": 18,
"column": 33
},
"end": {
"line": 18,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "func",
"start": 471,
"end": 475,
"loc": {
"start": {
"line": 18,
"column": 35
},
"end": {
"line": 18,
"column": 39
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 475,
"end": 476,
"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": "capture",
"start": 477,
"end": 484,
"loc": {
"start": {
"line": 18,
"column": 41
},
"end": {
"line": 18,
"column": 48
}
}
},
{
"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": 18,
"column": 48
},
"end": {
"line": 18,
"column": 49
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 485,
"end": 486,
"loc": {
"start": {
"line": 18,
"column": 49
},
"end": {
"line": 18,
"column": 50
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 491,
"end": 492,
"loc": {
"start": {
"line": 19,
"column": 4
},
"end": {
"line": 19,
"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": 497,
"end": 501,
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 20,
"column": 8
}
}
},
{
"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": 502,
"end": 504,
"loc": {
"start": {
"line": 20,
"column": 9
},
"end": {
"line": 20,
"column": 11
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 505,
"end": 506,
"loc": {
"start": {
"line": 20,
"column": 12
},
"end": {
"line": 20,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "obj",
"start": 506,
"end": 509,
"loc": {
"start": {
"line": 20,
"column": 13
},
"end": {
"line": 20,
"column": 16
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 509,
"end": 510,
"loc": {
"start": {
"line": 20,
"column": 16
},
"end": {
"line": 20,
"column": 17
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "attachEvent",
"start": 510,
"end": 521,
"loc": {
"start": {
"line": 20,
"column": 17
},
"end": {
"line": 20,
"column": 28
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 521,
"end": 522,
"loc": {
"start": {
"line": 20,
"column": 28
},
"end": {
"line": 20,
"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": 20,
"column": 30
},
"end": {
"line": 20,
"column": 31
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "obj",
"start": 533,
"end": 536,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 536,
"end": 537,
"loc": {
"start": {
"line": 21,
"column": 11
},
"end": {
"line": 21,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "attachEvent",
"start": 537,
"end": 548,
"loc": {
"start": {
"line": 21,
"column": 12
},
"end": {
"line": 21,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 548,
"end": 549,
"loc": {
"start": {
"line": 21,
"column": 23
},
"end": {
"line": 21,
"column": 24
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "on",
"start": 549,
"end": 553,
"loc": {
"start": {
"line": 21,
"column": 24
},
"end": {
"line": 21,
"column": 28
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 554,
"end": 555,
"loc": {
"start": {
"line": 21,
"column": 29
},
"end": {
"line": 21,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "type",
"start": 556,
"end": 560,
"loc": {
"start": {
"line": 21,
"column": 31
},
"end": {
"line": 21,
"column": 35
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 560,
"end": 561,
"loc": {
"start": {
"line": 21,
"column": 35
},
"end": {
"line": 21,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "func",
"start": 562,
"end": 566,
"loc": {
"start": {
"line": 21,
"column": 37
},
"end": {
"line": 21,
"column": 41
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 566,
"end": 567,
"loc": {
"start": {
"line": 21,
"column": 41
},
"end": {
"line": 21,
"column": 42
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 567,
"end": 568,
"loc": {
"start": {
"line": 21,
"column": 42
},
"end": {
"line": 21,
"column": 43
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 573,
"end": 574,
"loc": {
"start": {
"line": 22,
"column": 4
},
"end": {
"line": 22,
"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": 575,
"end": 579,
"loc": {
"start": {
"line": 22,
"column": 6
},
"end": {
"line": 22,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 580,
"end": 581,
"loc": {
"start": {
"line": 22,
"column": 11
},
"end": {
"line": 22,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "obj",
"start": 590,
"end": 593,
"loc": {
"start": {
"line": 23,
"column": 8
},
"end": {
"line": 23,
"column": 11
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 593,
"end": 594,
"loc": {
"start": {
"line": 23,
"column": 11
},
"end": {
"line": 23,
"column": 12
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "on",
"start": 594,
"end": 598,
"loc": {
"start": {
"line": 23,
"column": 12
},
"end": {
"line": 23,
"column": 16
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 599,
"end": 600,
"loc": {
"start": {
"line": 23,
"column": 17
},
"end": {
"line": 23,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "type",
"start": 601,
"end": 605,
"loc": {
"start": {
"line": 23,
"column": 19
},
"end": {
"line": 23,
"column": 23
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 605,
"end": 606,
"loc": {
"start": {
"line": 23,
"column": 23
},
"end": {
"line": 23,
"column": 24
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 607,
"end": 608,
"loc": {
"start": {
"line": 23,
"column": 25
},
"end": {
"line": 23,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "func",
"start": 609,
"end": 613,
"loc": {
"start": {
"line": 23,
"column": 27
},
"end": {
"line": 23,
"column": 31
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 613,
"end": 614,
"loc": {
"start": {
"line": 23,
"column": 31
},
"end": {
"line": 23,
"column": 32
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 619,
"end": 620,
"loc": {
"start": {
"line": 24,
"column": 4
},
"end": {
"line": 24,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 621,
"end": 622,
"loc": {
"start": {
"line": 25,
"column": 0
},
"end": {
"line": 25,
"column": 1
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 622,
"end": 623,
"loc": {
"start": {
"line": 25,
"column": 1
},
"end": {
"line": 25,
"column": 2
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Remove event handler for specified event on passed element\n *\n * @param {DOMElement} obj Element\n * @param {String} type Event type\n * @param {Function} Handler\n * @param {Boolean} capture Specifiy whether the event should be executed in\n * the capturing or in the bubbling phase\n ",
"start": 625,
"end": 915,
"loc": {
"start": {
"line": 27,
"column": 0
},
"end": {
"line": 35,
"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": 916,
"end": 922,
"loc": {
"start": {
"line": 36,
"column": 0
},
"end": {
"line": 36,
"column": 6
}
}
},
{
"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": 923,
"end": 928,
"loc": {
"start": {
"line": 36,
"column": 7
},
"end": {
"line": 36,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "removeEvt",
"start": 929,
"end": 938,
"loc": {
"start": {
"line": 36,
"column": 13
},
"end": {
"line": 36,
"column": 22
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 939,
"end": 940,
"loc": {
"start": {
"line": 36,
"column": 23
},
"end": {
"line": 36,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 941,
"end": 942,
"loc": {
"start": {
"line": 36,
"column": 25
},
"end": {
"line": 36,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "obj",
"start": 942,
"end": 945,
"loc": {
"start": {
"line": 36,
"column": 26
},
"end": {
"line": 36,
"column": 29
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 945,
"end": 946,
"loc": {
"start": {
"line": 36,
"column": 29
},
"end": {
"line": 36,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "type",
"start": 947,
"end": 951,
"loc": {
"start": {
"line": 36,
"column": 31
},
"end": {
"line": 36,
"column": 35
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 951,
"end": 952,
"loc": {
"start": {
"line": 36,
"column": 35
},
"end": {
"line": 36,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "func",
"start": 953,
"end": 957,
"loc": {
"start": {
"line": 36,
"column": 37
},
"end": {
"line": 36,
"column": 41
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 957,
"end": 958,
"loc": {
"start": {
"line": 36,
"column": 41
},
"end": {
"line": 36,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "capture",
"start": 959,
"end": 966,
"loc": {
"start": {
"line": 36,
"column": 43
},
"end": {
"line": 36,
"column": 50
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 966,
"end": 967,
"loc": {
"start": {
"line": 36,
"column": 50
},
"end": {
"line": 36,
"column": 51
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 968,
"end": 970,
"loc": {
"start": {
"line": 36,
"column": 52
},
"end": {
"line": 36,
"column": 54
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 971,
"end": 972,
"loc": {
"start": {
"line": 36,
"column": 55
},
"end": {
"line": 36,
"column": 56
}
}
},
{
"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": 977,
"end": 979,
"loc": {
"start": {
"line": 37,
"column": 4
},
"end": {
"line": 37,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 980,
"end": 981,
"loc": {
"start": {
"line": 37,
"column": 7
},
"end": {
"line": 37,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "obj",
"start": 981,
"end": 984,
"loc": {
"start": {
"line": 37,
"column": 8
},
"end": {
"line": 37,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 984,
"end": 985,
"loc": {
"start": {
"line": 37,
"column": 11
},
"end": {
"line": 37,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "removeEventListener",
"start": 985,
"end": 1004,
"loc": {
"start": {
"line": 37,
"column": 12
},
"end": {
"line": 37,
"column": 31
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1004,
"end": 1005,
"loc": {
"start": {
"line": 37,
"column": 31
},
"end": {
"line": 37,
"column": 32
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1006,
"end": 1007,
"loc": {
"start": {
"line": 37,
"column": 33
},
"end": {
"line": 37,
"column": 34
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "obj",
"start": 1016,
"end": 1019,
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 38,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1019,
"end": 1020,
"loc": {
"start": {
"line": 38,
"column": 11
},
"end": {
"line": 38,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "removeEventListener",
"start": 1020,
"end": 1039,
"loc": {
"start": {
"line": 38,
"column": 12
},
"end": {
"line": 38,
"column": 31
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1039,
"end": 1040,
"loc": {
"start": {
"line": 38,
"column": 31
},
"end": {
"line": 38,
"column": 32
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "type",
"start": 1040,
"end": 1044,
"loc": {
"start": {
"line": 38,
"column": 32
},
"end": {
"line": 38,
"column": 36
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1044,
"end": 1045,
"loc": {
"start": {
"line": 38,
"column": 36
},
"end": {
"line": 38,
"column": 37
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "func",
"start": 1046,
"end": 1050,
"loc": {
"start": {
"line": 38,
"column": 38
},
"end": {
"line": 38,
"column": 42
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1050,
"end": 1051,
"loc": {
"start": {
"line": 38,
"column": 42
},
"end": {
"line": 38,
"column": 43
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "capture",
"start": 1052,
"end": 1059,
"loc": {
"start": {
"line": 38,
"column": 44
},
"end": {
"line": 38,
"column": 51
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1059,
"end": 1060,
"loc": {
"start": {
"line": 38,
"column": 51
},
"end": {
"line": 38,
"column": 52
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1060,
"end": 1061,
"loc": {
"start": {
"line": 38,
"column": 52
},
"end": {
"line": 38,
"column": 53
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1066,
"end": 1067,
"loc": {
"start": {
"line": 39,
"column": 4
},
"end": {
"line": 39,
"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": 1068,
"end": 1072,
"loc": {
"start": {
"line": 39,
"column": 6
},
"end": {
"line": 39,
"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": 1073,
"end": 1075,
"loc": {
"start": {
"line": 39,
"column": 11
},
"end": {
"line": 39,
"column": 13
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1076,
"end": 1077,
"loc": {
"start": {
"line": 39,
"column": 14
},
"end": {
"line": 39,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "obj",
"start": 1077,
"end": 1080,
"loc": {
"start": {
"line": 39,
"column": 15
},
"end": {
"line": 39,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1080,
"end": 1081,
"loc": {
"start": {
"line": 39,
"column": 18
},
"end": {
"line": 39,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "detachEvent",
"start": 1081,
"end": 1092,
"loc": {
"start": {
"line": 39,
"column": 19
},
"end": {
"line": 39,
"column": 30
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1092,
"end": 1093,
"loc": {
"start": {
"line": 39,
"column": 30
},
"end": {
"line": 39,
"column": 31
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1094,
"end": 1095,
"loc": {
"start": {
"line": 39,
"column": 32
},
"end": {
"line": 39,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "obj",
"start": 1104,
"end": 1107,
"loc": {
"start": {
"line": 40,
"column": 8
},
"end": {
"line": 40,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1107,
"end": 1108,
"loc": {
"start": {
"line": 40,
"column": 11
},
"end": {
"line": 40,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "detachEvent",
"start": 1108,
"end": 1119,
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 23
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1119,
"end": 1120,
"loc": {
"start": {
"line": 40,
"column": 23
},
"end": {
"line": 40,
"column": 24
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "on",
"start": 1120,
"end": 1124,
"loc": {
"start": {
"line": 40,
"column": 24
},
"end": {
"line": 40,
"column": 28
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 1125,
"end": 1126,
"loc": {
"start": {
"line": 40,
"column": 29
},
"end": {
"line": 40,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "type",
"start": 1127,
"end": 1131,
"loc": {
"start": {
"line": 40,
"column": 31
},
"end": {
"line": 40,
"column": 35
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1131,
"end": 1132,
"loc": {
"start": {
"line": 40,
"column": 35
},
"end": {
"line": 40,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "func",
"start": 1133,
"end": 1137,
"loc": {
"start": {
"line": 40,
"column": 37
},
"end": {
"line": 40,
"column": 41
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1137,
"end": 1138,
"loc": {
"start": {
"line": 40,
"column": 41
},
"end": {
"line": 40,
"column": 42
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1138,
"end": 1139,
"loc": {
"start": {
"line": 40,
"column": 42
},
"end": {
"line": 40,
"column": 43
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1144,
"end": 1145,
"loc": {
"start": {
"line": 41,
"column": 4
},
"end": {
"line": 41,
"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": 1146,
"end": 1150,
"loc": {
"start": {
"line": 41,
"column": 6
},
"end": {
"line": 41,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1151,
"end": 1152,
"loc": {
"start": {
"line": 41,
"column": 11
},
"end": {
"line": 41,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "obj",
"start": 1161,
"end": 1164,
"loc": {
"start": {
"line": 42,
"column": 8
},
"end": {
"line": 42,
"column": 11
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1164,
"end": 1165,
"loc": {
"start": {
"line": 42,
"column": 11
},
"end": {
"line": 42,
"column": 12
}
}
},
{
"type": {
"label": "string",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "on",
"start": 1165,
"end": 1169,
"loc": {
"start": {
"line": 42,
"column": 12
},
"end": {
"line": 42,
"column": 16
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "+",
"start": 1170,
"end": 1171,
"loc": {
"start": {
"line": 42,
"column": 17
},
"end": {
"line": 42,
"column": 18
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "type",
"start": 1172,
"end": 1176,
"loc": {
"start": {
"line": 42,
"column": 19
},
"end": {
"line": 42,
"column": 23
}
}
},
{
"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": 42,
"column": 23
},
"end": {
"line": 42,
"column": 24
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1178,
"end": 1179,
"loc": {
"start": {
"line": 42,
"column": 25
},
"end": {
"line": 42,
"column": 26
}
}
},
{
"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": 1180,
"end": 1184,
"loc": {
"start": {
"line": 42,
"column": 27
},
"end": {
"line": 42,
"column": 31
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1184,
"end": 1185,
"loc": {
"start": {
"line": 42,
"column": 31
},
"end": {
"line": 42,
"column": 32
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1190,
"end": 1191,
"loc": {
"start": {
"line": 43,
"column": 4
},
"end": {
"line": 43,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1192,
"end": 1193,
"loc": {
"start": {
"line": 44,
"column": 0
},
"end": {
"line": 44,
"column": 1
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1193,
"end": 1194,
"loc": {
"start": {
"line": 44,
"column": 1
},
"end": {
"line": 44,
"column": 2
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Prevents further propagation of the current event in the bubbling phase\n *\n * @param {Event} evt Event on the DOM\n ",
"start": 1196,
"end": 1320,
"loc": {
"start": {
"line": 46,
"column": 0
},
"end": {
"line": 50,
"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": 1321,
"end": 1327,
"loc": {
"start": {
"line": 51,
"column": 0
},
"end": {
"line": 51,
"column": 6
}
}
},
{
"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": 1328,
"end": 1333,
"loc": {
"start": {
"line": 51,
"column": 7
},
"end": {
"line": 51,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "stopEvt",
"start": 1334,
"end": 1341,
"loc": {
"start": {
"line": 51,
"column": 13
},
"end": {
"line": 51,
"column": 20
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1342,
"end": 1343,
"loc": {
"start": {
"line": 51,
"column": 21
},
"end": {
"line": 51,
"column": 22
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1344,
"end": 1345,
"loc": {
"start": {
"line": 51,
"column": 23
},
"end": {
"line": 51,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "evt",
"start": 1345,
"end": 1348,
"loc": {
"start": {
"line": 51,
"column": 24
},
"end": {
"line": 51,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1348,
"end": 1349,
"loc": {
"start": {
"line": 51,
"column": 27
},
"end": {
"line": 51,
"column": 28
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1350,
"end": 1352,
"loc": {
"start": {
"line": 51,
"column": 29
},
"end": {
"line": 51,
"column": 31
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1353,
"end": 1354,
"loc": {
"start": {
"line": 51,
"column": 32
},
"end": {
"line": 51,
"column": 33
}
}
},
{
"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": 1359,
"end": 1361,
"loc": {
"start": {
"line": 52,
"column": 4
},
"end": {
"line": 52,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1362,
"end": 1363,
"loc": {
"start": {
"line": 52,
"column": 7
},
"end": {
"line": 52,
"column": 8
}
}
},
{
"type": {
"label": "prefix",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "!",
"start": 1363,
"end": 1364,
"loc": {
"start": {
"line": 52,
"column": 8
},
"end": {
"line": 52,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "evt",
"start": 1364,
"end": 1367,
"loc": {
"start": {
"line": 52,
"column": 9
},
"end": {
"line": 52,
"column": 12
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1367,
"end": 1368,
"loc": {
"start": {
"line": 52,
"column": 12
},
"end": {
"line": 52,
"column": 13
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1369,
"end": 1370,
"loc": {
"start": {
"line": 52,
"column": 14
},
"end": {
"line": 52,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "evt",
"start": 1379,
"end": 1382,
"loc": {
"start": {
"line": 53,
"column": 8
},
"end": {
"line": 53,
"column": 11
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1383,
"end": 1384,
"loc": {
"start": {
"line": 53,
"column": 12
},
"end": {
"line": 53,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 1385,
"end": 1389,
"loc": {
"start": {
"line": 53,
"column": 14
},
"end": {
"line": 53,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1389,
"end": 1390,
"loc": {
"start": {
"line": 53,
"column": 18
},
"end": {
"line": 53,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 1390,
"end": 1395,
"loc": {
"start": {
"line": 53,
"column": 19
},
"end": {
"line": 53,
"column": 24
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1395,
"end": 1396,
"loc": {
"start": {
"line": 53,
"column": 24
},
"end": {
"line": 53,
"column": 25
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1401,
"end": 1402,
"loc": {
"start": {
"line": 54,
"column": 4
},
"end": {
"line": 54,
"column": 5
}
}
},
{
"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": 1407,
"end": 1409,
"loc": {
"start": {
"line": 55,
"column": 4
},
"end": {
"line": 55,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1410,
"end": 1411,
"loc": {
"start": {
"line": 55,
"column": 7
},
"end": {
"line": 55,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "evt",
"start": 1411,
"end": 1414,
"loc": {
"start": {
"line": 55,
"column": 8
},
"end": {
"line": 55,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1414,
"end": 1415,
"loc": {
"start": {
"line": 55,
"column": 11
},
"end": {
"line": 55,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "stopPropagation",
"start": 1415,
"end": 1430,
"loc": {
"start": {
"line": 55,
"column": 12
},
"end": {
"line": 55,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1430,
"end": 1431,
"loc": {
"start": {
"line": 55,
"column": 27
},
"end": {
"line": 55,
"column": 28
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1432,
"end": 1433,
"loc": {
"start": {
"line": 55,
"column": 29
},
"end": {
"line": 55,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "evt",
"start": 1442,
"end": 1445,
"loc": {
"start": {
"line": 56,
"column": 8
},
"end": {
"line": 56,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1445,
"end": 1446,
"loc": {
"start": {
"line": 56,
"column": 11
},
"end": {
"line": 56,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "stopPropagation",
"start": 1446,
"end": 1461,
"loc": {
"start": {
"line": 56,
"column": 12
},
"end": {
"line": 56,
"column": 27
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1461,
"end": 1462,
"loc": {
"start": {
"line": 56,
"column": 27
},
"end": {
"line": 56,
"column": 28
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1462,
"end": 1463,
"loc": {
"start": {
"line": 56,
"column": 28
},
"end": {
"line": 56,
"column": 29
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1463,
"end": 1464,
"loc": {
"start": {
"line": 56,
"column": 29
},
"end": {
"line": 56,
"column": 30
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1469,
"end": 1470,
"loc": {
"start": {
"line": 57,
"column": 4
},
"end": {
"line": 57,
"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": 1471,
"end": 1475,
"loc": {
"start": {
"line": 57,
"column": 6
},
"end": {
"line": 57,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1476,
"end": 1477,
"loc": {
"start": {
"line": 57,
"column": 11
},
"end": {
"line": 57,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "evt",
"start": 1486,
"end": 1489,
"loc": {
"start": {
"line": 58,
"column": 8
},
"end": {
"line": 58,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1489,
"end": 1490,
"loc": {
"start": {
"line": 58,
"column": 11
},
"end": {
"line": 58,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "cancelBubble",
"start": 1490,
"end": 1502,
"loc": {
"start": {
"line": 58,
"column": 12
},
"end": {
"line": 58,
"column": 24
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1503,
"end": 1504,
"loc": {
"start": {
"line": 58,
"column": 25
},
"end": {
"line": 58,
"column": 26
}
}
},
{
"type": {
"label": "true",
"keyword": "true",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "true",
"start": 1505,
"end": 1509,
"loc": {
"start": {
"line": 58,
"column": 27
},
"end": {
"line": 58,
"column": 31
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1509,
"end": 1510,
"loc": {
"start": {
"line": 58,
"column": 31
},
"end": {
"line": 58,
"column": 32
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1515,
"end": 1516,
"loc": {
"start": {
"line": 59,
"column": 4
},
"end": {
"line": 59,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1517,
"end": 1518,
"loc": {
"start": {
"line": 60,
"column": 0
},
"end": {
"line": 60,
"column": 1
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1518,
"end": 1519,
"loc": {
"start": {
"line": 60,
"column": 1
},
"end": {
"line": 60,
"column": 2
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Cancels the event if it is cancelable, without stopping further\n * propagation of the event.\n *\n * @param {Event} evt Event on the DOM\n ",
"start": 1521,
"end": 1666,
"loc": {
"start": {
"line": 62,
"column": 0
},
"end": {
"line": 67,
"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": 1667,
"end": 1673,
"loc": {
"start": {
"line": 68,
"column": 0
},
"end": {
"line": 68,
"column": 6
}
}
},
{
"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": 1674,
"end": 1679,
"loc": {
"start": {
"line": 68,
"column": 7
},
"end": {
"line": 68,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "cancelEvt",
"start": 1680,
"end": 1689,
"loc": {
"start": {
"line": 68,
"column": 13
},
"end": {
"line": 68,
"column": 22
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1690,
"end": 1691,
"loc": {
"start": {
"line": 68,
"column": 23
},
"end": {
"line": 68,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1692,
"end": 1693,
"loc": {
"start": {
"line": 68,
"column": 25
},
"end": {
"line": 68,
"column": 26
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "evt",
"start": 1693,
"end": 1696,
"loc": {
"start": {
"line": 68,
"column": 26
},
"end": {
"line": 68,
"column": 29
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1696,
"end": 1697,
"loc": {
"start": {
"line": 68,
"column": 29
},
"end": {
"line": 68,
"column": 30
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1698,
"end": 1700,
"loc": {
"start": {
"line": 68,
"column": 31
},
"end": {
"line": 68,
"column": 33
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1701,
"end": 1702,
"loc": {
"start": {
"line": 68,
"column": 34
},
"end": {
"line": 68,
"column": 35
}
}
},
{
"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": 1707,
"end": 1709,
"loc": {
"start": {
"line": 69,
"column": 4
},
"end": {
"line": 69,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1710,
"end": 1711,
"loc": {
"start": {
"line": 69,
"column": 7
},
"end": {
"line": 69,
"column": 8
}
}
},
{
"type": {
"label": "prefix",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "!",
"start": 1711,
"end": 1712,
"loc": {
"start": {
"line": 69,
"column": 8
},
"end": {
"line": 69,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "evt",
"start": 1712,
"end": 1715,
"loc": {
"start": {
"line": 69,
"column": 9
},
"end": {
"line": 69,
"column": 12
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1715,
"end": 1716,
"loc": {
"start": {
"line": 69,
"column": 12
},
"end": {
"line": 69,
"column": 13
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1717,
"end": 1718,
"loc": {
"start": {
"line": 69,
"column": 14
},
"end": {
"line": 69,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "evt",
"start": 1727,
"end": 1730,
"loc": {
"start": {
"line": 70,
"column": 8
},
"end": {
"line": 70,
"column": 11
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1731,
"end": 1732,
"loc": {
"start": {
"line": 70,
"column": 12
},
"end": {
"line": 70,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 1733,
"end": 1737,
"loc": {
"start": {
"line": 70,
"column": 14
},
"end": {
"line": 70,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1737,
"end": 1738,
"loc": {
"start": {
"line": 70,
"column": 18
},
"end": {
"line": 70,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 1738,
"end": 1743,
"loc": {
"start": {
"line": 70,
"column": 19
},
"end": {
"line": 70,
"column": 24
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1743,
"end": 1744,
"loc": {
"start": {
"line": 70,
"column": 24
},
"end": {
"line": 70,
"column": 25
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1749,
"end": 1750,
"loc": {
"start": {
"line": 71,
"column": 4
},
"end": {
"line": 71,
"column": 5
}
}
},
{
"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": 1755,
"end": 1757,
"loc": {
"start": {
"line": 72,
"column": 4
},
"end": {
"line": 72,
"column": 6
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1758,
"end": 1759,
"loc": {
"start": {
"line": 72,
"column": 7
},
"end": {
"line": 72,
"column": 8
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "evt",
"start": 1759,
"end": 1762,
"loc": {
"start": {
"line": 72,
"column": 8
},
"end": {
"line": 72,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1762,
"end": 1763,
"loc": {
"start": {
"line": 72,
"column": 11
},
"end": {
"line": 72,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "preventDefault",
"start": 1763,
"end": 1777,
"loc": {
"start": {
"line": 72,
"column": 12
},
"end": {
"line": 72,
"column": 26
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1777,
"end": 1778,
"loc": {
"start": {
"line": 72,
"column": 26
},
"end": {
"line": 72,
"column": 27
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1779,
"end": 1780,
"loc": {
"start": {
"line": 72,
"column": 28
},
"end": {
"line": 72,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "evt",
"start": 1789,
"end": 1792,
"loc": {
"start": {
"line": 73,
"column": 8
},
"end": {
"line": 73,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1792,
"end": 1793,
"loc": {
"start": {
"line": 73,
"column": 11
},
"end": {
"line": 73,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "preventDefault",
"start": 1793,
"end": 1807,
"loc": {
"start": {
"line": 73,
"column": 12
},
"end": {
"line": 73,
"column": 26
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1807,
"end": 1808,
"loc": {
"start": {
"line": 73,
"column": 26
},
"end": {
"line": 73,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1808,
"end": 1809,
"loc": {
"start": {
"line": 73,
"column": 27
},
"end": {
"line": 73,
"column": 28
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1809,
"end": 1810,
"loc": {
"start": {
"line": 73,
"column": 28
},
"end": {
"line": 73,
"column": 29
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1815,
"end": 1816,
"loc": {
"start": {
"line": 74,
"column": 4
},
"end": {
"line": 74,
"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": 1817,
"end": 1821,
"loc": {
"start": {
"line": 74,
"column": 6
},
"end": {
"line": 74,
"column": 10
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1822,
"end": 1823,
"loc": {
"start": {
"line": 74,
"column": 11
},
"end": {
"line": 74,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "evt",
"start": 1832,
"end": 1835,
"loc": {
"start": {
"line": 75,
"column": 8
},
"end": {
"line": 75,
"column": 11
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1835,
"end": 1836,
"loc": {
"start": {
"line": 75,
"column": 11
},
"end": {
"line": 75,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "returnValue",
"start": 1836,
"end": 1847,
"loc": {
"start": {
"line": 75,
"column": 12
},
"end": {
"line": 75,
"column": 23
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 1848,
"end": 1849,
"loc": {
"start": {
"line": 75,
"column": 24
},
"end": {
"line": 75,
"column": 25
}
}
},
{
"type": {
"label": "false",
"keyword": "false",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "false",
"start": 1850,
"end": 1855,
"loc": {
"start": {
"line": 75,
"column": 26
},
"end": {
"line": 75,
"column": 31
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1855,
"end": 1856,
"loc": {
"start": {
"line": 75,
"column": 31
},
"end": {
"line": 75,
"column": 32
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1861,
"end": 1862,
"loc": {
"start": {
"line": 76,
"column": 4
},
"end": {
"line": 76,
"column": 5
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 1863,
"end": 1864,
"loc": {
"start": {
"line": 77,
"column": 0
},
"end": {
"line": 77,
"column": 1
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 1864,
"end": 1865,
"loc": {
"start": {
"line": 77,
"column": 1
},
"end": {
"line": 77,
"column": 2
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Reference to the object that dispatched the event\n *\n * @param {Event} evt Event on the DOM\n * @returns {DOMElement}\n ",
"start": 1867,
"end": 1994,
"loc": {
"start": {
"line": 79,
"column": 0
},
"end": {
"line": 84,
"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": 1995,
"end": 2001,
"loc": {
"start": {
"line": 85,
"column": 0
},
"end": {
"line": 85,
"column": 6
}
}
},
{
"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": 2002,
"end": 2007,
"loc": {
"start": {
"line": 85,
"column": 7
},
"end": {
"line": 85,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "targetEvt",
"start": 2008,
"end": 2017,
"loc": {
"start": {
"line": 85,
"column": 13
},
"end": {
"line": 85,
"column": 22
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2018,
"end": 2019,
"loc": {
"start": {
"line": 85,
"column": 23
},
"end": {
"line": 85,
"column": 24
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2020,
"end": 2021,
"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": "evt",
"start": 2021,
"end": 2024,
"loc": {
"start": {
"line": 85,
"column": 26
},
"end": {
"line": 85,
"column": 29
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2024,
"end": 2025,
"loc": {
"start": {
"line": 85,
"column": 29
},
"end": {
"line": 85,
"column": 30
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2026,
"end": 2028,
"loc": {
"start": {
"line": 85,
"column": 31
},
"end": {
"line": 85,
"column": 33
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2029,
"end": 2030,
"loc": {
"start": {
"line": 85,
"column": 34
},
"end": {
"line": 85,
"column": 35
}
}
},
{
"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": 2035,
"end": 2037,
"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": 2038,
"end": 2039,
"loc": {
"start": {
"line": 86,
"column": 7
},
"end": {
"line": 86,
"column": 8
}
}
},
{
"type": {
"label": "prefix",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "!",
"start": 2039,
"end": 2040,
"loc": {
"start": {
"line": 86,
"column": 8
},
"end": {
"line": 86,
"column": 9
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "evt",
"start": 2040,
"end": 2043,
"loc": {
"start": {
"line": 86,
"column": 9
},
"end": {
"line": 86,
"column": 12
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2043,
"end": 2044,
"loc": {
"start": {
"line": 86,
"column": 12
},
"end": {
"line": 86,
"column": 13
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2045,
"end": 2046,
"loc": {
"start": {
"line": 86,
"column": 14
},
"end": {
"line": 86,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "evt",
"start": 2055,
"end": 2058,
"loc": {
"start": {
"line": 87,
"column": 8
},
"end": {
"line": 87,
"column": 11
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2059,
"end": 2060,
"loc": {
"start": {
"line": 87,
"column": 12
},
"end": {
"line": 87,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "root",
"start": 2061,
"end": 2065,
"loc": {
"start": {
"line": 87,
"column": 14
},
"end": {
"line": 87,
"column": 18
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2065,
"end": 2066,
"loc": {
"start": {
"line": 87,
"column": 18
},
"end": {
"line": 87,
"column": 19
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "event",
"start": 2066,
"end": 2071,
"loc": {
"start": {
"line": 87,
"column": 19
},
"end": {
"line": 87,
"column": 24
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2071,
"end": 2072,
"loc": {
"start": {
"line": 87,
"column": 24
},
"end": {
"line": 87,
"column": 25
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2077,
"end": 2078,
"loc": {
"start": {
"line": 88,
"column": 4
},
"end": {
"line": 88,
"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": 2083,
"end": 2089,
"loc": {
"start": {
"line": 89,
"column": 4
},
"end": {
"line": 89,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "evt",
"start": 2090,
"end": 2093,
"loc": {
"start": {
"line": 89,
"column": 11
},
"end": {
"line": 89,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2093,
"end": 2094,
"loc": {
"start": {
"line": 89,
"column": 14
},
"end": {
"line": 89,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "target",
"start": 2094,
"end": 2100,
"loc": {
"start": {
"line": 89,
"column": 15
},
"end": {
"line": 89,
"column": 21
}
}
},
{
"type": {
"label": "||",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 1,
"updateContext": null
},
"value": "||",
"start": 2101,
"end": 2103,
"loc": {
"start": {
"line": 89,
"column": 22
},
"end": {
"line": 89,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "evt",
"start": 2104,
"end": 2107,
"loc": {
"start": {
"line": 89,
"column": 25
},
"end": {
"line": 89,
"column": 28
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2107,
"end": 2108,
"loc": {
"start": {
"line": 89,
"column": 28
},
"end": {
"line": 89,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "srcElement",
"start": 2108,
"end": 2118,
"loc": {
"start": {
"line": 89,
"column": 29
},
"end": {
"line": 89,
"column": 39
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2118,
"end": 2119,
"loc": {
"start": {
"line": 89,
"column": 39
},
"end": {
"line": 89,
"column": 40
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2120,
"end": 2121,
"loc": {
"start": {
"line": 90,
"column": 0
},
"end": {
"line": 90,
"column": 1
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2121,
"end": 2122,
"loc": {
"start": {
"line": 90,
"column": 1
},
"end": {
"line": 90,
"column": 2
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Returns the Unicode value of pressed key\n *\n * @param {Event} evt Event on the DOM\n * @returns {Number}\n ",
"start": 2124,
"end": 2238,
"loc": {
"start": {
"line": 92,
"column": 0
},
"end": {
"line": 97,
"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": 2239,
"end": 2245,
"loc": {
"start": {
"line": 98,
"column": 0
},
"end": {
"line": 98,
"column": 6
}
}
},
{
"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": 2246,
"end": 2251,
"loc": {
"start": {
"line": 98,
"column": 7
},
"end": {
"line": 98,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "keyCode",
"start": 2252,
"end": 2259,
"loc": {
"start": {
"line": 98,
"column": 13
},
"end": {
"line": 98,
"column": 20
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2260,
"end": 2261,
"loc": {
"start": {
"line": 98,
"column": 21
},
"end": {
"line": 98,
"column": 22
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2262,
"end": 2263,
"loc": {
"start": {
"line": 98,
"column": 23
},
"end": {
"line": 98,
"column": 24
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "evt",
"start": 2263,
"end": 2266,
"loc": {
"start": {
"line": 98,
"column": 24
},
"end": {
"line": 98,
"column": 27
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2266,
"end": 2267,
"loc": {
"start": {
"line": 98,
"column": 27
},
"end": {
"line": 98,
"column": 28
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2268,
"end": 2270,
"loc": {
"start": {
"line": 98,
"column": 29
},
"end": {
"line": 98,
"column": 31
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2271,
"end": 2272,
"loc": {
"start": {
"line": 98,
"column": 32
},
"end": {
"line": 98,
"column": 33
}
}
},
{
"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": 2277,
"end": 2283,
"loc": {
"start": {
"line": 99,
"column": 4
},
"end": {
"line": 99,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "evt",
"start": 2284,
"end": 2287,
"loc": {
"start": {
"line": 99,
"column": 11
},
"end": {
"line": 99,
"column": 14
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2287,
"end": 2288,
"loc": {
"start": {
"line": 99,
"column": 14
},
"end": {
"line": 99,
"column": 15
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "charCode",
"start": 2288,
"end": 2296,
"loc": {
"start": {
"line": 99,
"column": 15
},
"end": {
"line": 99,
"column": 23
}
}
},
{
"type": {
"label": "?",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2297,
"end": 2298,
"loc": {
"start": {
"line": 99,
"column": 24
},
"end": {
"line": 99,
"column": 25
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "evt",
"start": 2299,
"end": 2302,
"loc": {
"start": {
"line": 99,
"column": 26
},
"end": {
"line": 99,
"column": 29
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2302,
"end": 2303,
"loc": {
"start": {
"line": 99,
"column": 29
},
"end": {
"line": 99,
"column": 30
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "charCode",
"start": 2303,
"end": 2311,
"loc": {
"start": {
"line": 99,
"column": 30
},
"end": {
"line": 99,
"column": 38
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2312,
"end": 2313,
"loc": {
"start": {
"line": 99,
"column": 39
},
"end": {
"line": 99,
"column": 40
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2322,
"end": 2323,
"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": "evt",
"start": 2323,
"end": 2326,
"loc": {
"start": {
"line": 100,
"column": 9
},
"end": {
"line": 100,
"column": 12
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2326,
"end": 2327,
"loc": {
"start": {
"line": 100,
"column": 12
},
"end": {
"line": 100,
"column": 13
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "keyCode",
"start": 2327,
"end": 2334,
"loc": {
"start": {
"line": 100,
"column": 13
},
"end": {
"line": 100,
"column": 20
}
}
},
{
"type": {
"label": "?",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2335,
"end": 2336,
"loc": {
"start": {
"line": 100,
"column": 21
},
"end": {
"line": 100,
"column": 22
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "evt",
"start": 2337,
"end": 2340,
"loc": {
"start": {
"line": 100,
"column": 23
},
"end": {
"line": 100,
"column": 26
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2340,
"end": 2341,
"loc": {
"start": {
"line": 100,
"column": 26
},
"end": {
"line": 100,
"column": 27
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "keyCode",
"start": 2341,
"end": 2348,
"loc": {
"start": {
"line": 100,
"column": 27
},
"end": {
"line": 100,
"column": 34
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2349,
"end": 2350,
"loc": {
"start": {
"line": 100,
"column": 35
},
"end": {
"line": 100,
"column": 36
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2351,
"end": 2352,
"loc": {
"start": {
"line": 100,
"column": 37
},
"end": {
"line": 100,
"column": 38
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "evt",
"start": 2352,
"end": 2355,
"loc": {
"start": {
"line": 100,
"column": 38
},
"end": {
"line": 100,
"column": 41
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2355,
"end": 2356,
"loc": {
"start": {
"line": 100,
"column": 41
},
"end": {
"line": 100,
"column": 42
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "which",
"start": 2356,
"end": 2361,
"loc": {
"start": {
"line": 100,
"column": 42
},
"end": {
"line": 100,
"column": 47
}
}
},
{
"type": {
"label": "?",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2362,
"end": 2363,
"loc": {
"start": {
"line": 100,
"column": 48
},
"end": {
"line": 100,
"column": 49
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "evt",
"start": 2364,
"end": 2367,
"loc": {
"start": {
"line": 100,
"column": 50
},
"end": {
"line": 100,
"column": 53
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2367,
"end": 2368,
"loc": {
"start": {
"line": 100,
"column": 53
},
"end": {
"line": 100,
"column": 54
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "which",
"start": 2368,
"end": 2373,
"loc": {
"start": {
"line": 100,
"column": 54
},
"end": {
"line": 100,
"column": 59
}
}
},
{
"type": {
"label": ":",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2374,
"end": 2375,
"loc": {
"start": {
"line": 100,
"column": 60
},
"end": {
"line": 100,
"column": 61
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 0,
"start": 2376,
"end": 2377,
"loc": {
"start": {
"line": 100,
"column": 62
},
"end": {
"line": 100,
"column": 63
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2377,
"end": 2378,
"loc": {
"start": {
"line": 100,
"column": 63
},
"end": {
"line": 100,
"column": 64
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2378,
"end": 2379,
"loc": {
"start": {
"line": 100,
"column": 64
},
"end": {
"line": 100,
"column": 65
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2379,
"end": 2380,
"loc": {
"start": {
"line": 100,
"column": 65
},
"end": {
"line": 100,
"column": 66
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2381,
"end": 2382,
"loc": {
"start": {
"line": 101,
"column": 0
},
"end": {
"line": 101,
"column": 1
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2382,
"end": 2383,
"loc": {
"start": {
"line": 101,
"column": 1
},
"end": {
"line": 101,
"column": 2
}
}
},
{
"type": "CommentBlock",
"value": "*\n * Check code of pressed key is one of the expected key codes\n *\n * @param {Event} evt key event\n * @param {Array} keyCodes list of keycodes to check\n ",
"start": 2385,
"end": 2542,
"loc": {
"start": {
"line": 103,
"column": 0
},
"end": {
"line": 108,
"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": 2543,
"end": 2549,
"loc": {
"start": {
"line": 109,
"column": 0
},
"end": {
"line": 109,
"column": 6
}
}
},
{
"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": 2550,
"end": 2555,
"loc": {
"start": {
"line": 109,
"column": 7
},
"end": {
"line": 109,
"column": 12
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "isKeyPressed",
"start": 2556,
"end": 2568,
"loc": {
"start": {
"line": 109,
"column": 13
},
"end": {
"line": 109,
"column": 25
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2569,
"end": 2570,
"loc": {
"start": {
"line": 109,
"column": 26
},
"end": {
"line": 109,
"column": 27
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2571,
"end": 2572,
"loc": {
"start": {
"line": 109,
"column": 28
},
"end": {
"line": 109,
"column": 29
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "evt",
"start": 2572,
"end": 2575,
"loc": {
"start": {
"line": 109,
"column": 29
},
"end": {
"line": 109,
"column": 32
}
}
},
{
"type": {
"label": ",",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2575,
"end": 2576,
"loc": {
"start": {
"line": 109,
"column": 32
},
"end": {
"line": 109,
"column": 33
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "keyCodes",
"start": 2577,
"end": 2585,
"loc": {
"start": {
"line": 109,
"column": 34
},
"end": {
"line": 109,
"column": 42
}
}
},
{
"type": {
"label": "=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": true,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": "=",
"start": 2586,
"end": 2587,
"loc": {
"start": {
"line": 109,
"column": 43
},
"end": {
"line": 109,
"column": 44
}
}
},
{
"type": {
"label": "[",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2588,
"end": 2589,
"loc": {
"start": {
"line": 109,
"column": 45
},
"end": {
"line": 109,
"column": 46
}
}
},
{
"type": {
"label": "]",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2589,
"end": 2590,
"loc": {
"start": {
"line": 109,
"column": 46
},
"end": {
"line": 109,
"column": 47
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2590,
"end": 2591,
"loc": {
"start": {
"line": 109,
"column": 47
},
"end": {
"line": 109,
"column": 48
}
}
},
{
"type": {
"label": "=>",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2592,
"end": 2594,
"loc": {
"start": {
"line": 109,
"column": 49
},
"end": {
"line": 109,
"column": 51
}
}
},
{
"type": {
"label": "{",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2595,
"end": 2596,
"loc": {
"start": {
"line": 109,
"column": 52
},
"end": {
"line": 109,
"column": 53
}
}
},
{
"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": 2601,
"end": 2607,
"loc": {
"start": {
"line": 110,
"column": 4
},
"end": {
"line": 110,
"column": 10
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "keyCodes",
"start": 2608,
"end": 2616,
"loc": {
"start": {
"line": 110,
"column": 11
},
"end": {
"line": 110,
"column": 19
}
}
},
{
"type": {
"label": ".",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2616,
"end": 2617,
"loc": {
"start": {
"line": 110,
"column": 19
},
"end": {
"line": 110,
"column": 20
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "indexOf",
"start": 2617,
"end": 2624,
"loc": {
"start": {
"line": 110,
"column": 20
},
"end": {
"line": 110,
"column": 27
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2624,
"end": 2625,
"loc": {
"start": {
"line": 110,
"column": 27
},
"end": {
"line": 110,
"column": 28
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "keyCode",
"start": 2625,
"end": 2632,
"loc": {
"start": {
"line": 110,
"column": 28
},
"end": {
"line": 110,
"column": 35
}
}
},
{
"type": {
"label": "(",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2632,
"end": 2633,
"loc": {
"start": {
"line": 110,
"column": 35
},
"end": {
"line": 110,
"column": 36
}
}
},
{
"type": {
"label": "name",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"value": "evt",
"start": 2633,
"end": 2636,
"loc": {
"start": {
"line": 110,
"column": 36
},
"end": {
"line": 110,
"column": 39
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2636,
"end": 2637,
"loc": {
"start": {
"line": 110,
"column": 39
},
"end": {
"line": 110,
"column": 40
}
}
},
{
"type": {
"label": ")",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2637,
"end": 2638,
"loc": {
"start": {
"line": 110,
"column": 40
},
"end": {
"line": 110,
"column": 41
}
}
},
{
"type": {
"label": "==/!=",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": 6,
"updateContext": null
},
"value": "!==",
"start": 2639,
"end": 2642,
"loc": {
"start": {
"line": 110,
"column": 42
},
"end": {
"line": 110,
"column": 45
}
}
},
{
"type": {
"label": "+/-",
"beforeExpr": true,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": true,
"postfix": false,
"binop": 9,
"updateContext": null
},
"value": "-",
"start": 2643,
"end": 2644,
"loc": {
"start": {
"line": 110,
"column": 46
},
"end": {
"line": 110,
"column": 47
}
}
},
{
"type": {
"label": "num",
"beforeExpr": false,
"startsExpr": true,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"value": 1,
"start": 2644,
"end": 2645,
"loc": {
"start": {
"line": 110,
"column": 47
},
"end": {
"line": 110,
"column": 48
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2645,
"end": 2646,
"loc": {
"start": {
"line": 110,
"column": 48
},
"end": {
"line": 110,
"column": 49
}
}
},
{
"type": {
"label": "}",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null
},
"start": 2647,
"end": 2648,
"loc": {
"start": {
"line": 111,
"column": 0
},
"end": {
"line": 111,
"column": 1
}
}
},
{
"type": {
"label": ";",
"beforeExpr": true,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2648,
"end": 2649,
"loc": {
"start": {
"line": 111,
"column": 1
},
"end": {
"line": 111,
"column": 2
}
}
},
{
"type": {
"label": "eof",
"beforeExpr": false,
"startsExpr": false,
"rightAssociative": false,
"isLoop": false,
"isAssign": false,
"prefix": false,
"postfix": false,
"binop": null,
"updateContext": null
},
"start": 2650,
"end": 2650,
"loc": {
"start": {
"line": 112,
"column": 0
},
"end": {
"line": 112,
"column": 0
}
}
}
]
}