1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-06-04 15:03:01 +02:00
TableFilter/doc/ast/source/src/modules/store.js.json

4739 lines
165 KiB
JSON
Raw Normal View History

{
"type": "Program",
"body": [
{
"type": "ImportDeclaration",
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"local": {
"type": "Identifier",
"name": "Cookie",
"range": [
7,
13
],
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 13
}
}
},
"range": [
7,
13
],
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 13
}
}
}
],
"source": {
"type": "Literal",
"value": "../cookie",
"raw": "'../cookie'",
"range": [
19,
30
],
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 30
}
}
},
"range": [
0,
31
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 31
}
}
},
{
"type": "ExportNamedDeclaration",
"declaration": {
"type": "ClassDeclaration",
"id": {
"type": "Identifier",
"name": "Store",
"range": [
2015-08-06 07:27:09 +02:00
48,
53
],
"loc": {
"start": {
"line": 3,
"column": 13
},
"end": {
"line": 3,
"column": 18
}
}
},
"superClass": null,
"body": {
"type": "ClassBody",
"body": [
{
"type": "MethodDefinition",
"key": {
"type": "Identifier",
"name": "constructor",
"range": [
2015-08-06 07:27:09 +02:00
237,
248
],
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 15
}
}
},
"value": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "tf",
"range": [
2015-08-06 07:27:09 +02:00
249,
251
],
"loc": {
"start": {
"line": 11,
"column": 16
},
"end": {
"line": 11,
"column": 18
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "f",
"range": [
2015-08-06 07:27:09 +02:00
268,
269
],
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 13
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "tf",
"range": [
2015-08-06 07:27:09 +02:00
272,
274
],
"loc": {
"start": {
"line": 12,
"column": 16
},
"end": {
"line": 12,
"column": 18
}
}
},
"property": {
"type": "Identifier",
"name": "config",
"range": [
2015-08-06 07:27:09 +02:00
275,
281
],
"loc": {
"start": {
"line": 12,
"column": 19
},
"end": {
"line": 12,
"column": 25
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
272,
281
],
"loc": {
"start": {
"line": 12,
"column": 16
},
"end": {
"line": 12,
"column": 25
}
}
},
"arguments": [],
"range": [
2015-08-06 07:27:09 +02:00
272,
283
],
"loc": {
"start": {
"line": 12,
"column": 16
},
"end": {
"line": 12,
"column": 27
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
268,
283
],
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 27
}
}
}
],
"kind": "var",
"range": [
2015-08-06 07:27:09 +02:00
264,
284
],
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 28
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
2015-08-06 07:27:09 +02:00
296,
300
],
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "duration",
"range": [
2015-08-06 07:27:09 +02:00
301,
309
],
"loc": {
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 14,
"column": 21
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
296,
309
],
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 21
}
}
},
"right": {
"type": "ConditionalExpression",
"test": {
"type": "UnaryExpression",
"operator": "!",
"argument": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "isNaN",
"range": [
2015-08-06 07:27:09 +02:00
313,
318
],
"loc": {
"start": {
"line": 14,
"column": 25
},
"end": {
"line": 14,
"column": 30
}
}
},
"arguments": [
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "f",
"range": [
2015-08-06 07:27:09 +02:00
319,
320
],
"loc": {
"start": {
"line": 14,
"column": 31
},
"end": {
"line": 14,
"column": 32
}
}
},
"property": {
"type": "Identifier",
"name": "set_cookie_duration",
"range": [
2015-08-06 07:27:09 +02:00
321,
340
],
"loc": {
"start": {
"line": 14,
"column": 33
},
"end": {
"line": 14,
"column": 52
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
319,
340
],
"loc": {
"start": {
"line": 14,
"column": 31
},
"end": {
"line": 14,
"column": 52
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
313,
341
],
"loc": {
"start": {
"line": 14,
"column": 25
},
"end": {
"line": 14,
"column": 53
}
}
},
"prefix": true,
"range": [
2015-08-06 07:27:09 +02:00
312,
341
],
"loc": {
"start": {
"line": 14,
"column": 24
},
"end": {
"line": 14,
"column": 53
}
}
},
"consequent": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "parseInt",
"range": [
2015-08-06 07:27:09 +02:00
357,
365
],
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 20
}
}
},
"arguments": [
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "f",
"range": [
2015-08-06 07:27:09 +02:00
366,
367
],
"loc": {
"start": {
"line": 15,
"column": 21
},
"end": {
"line": 15,
"column": 22
}
}
},
"property": {
"type": "Identifier",
"name": "set_cookie_duration",
"range": [
2015-08-06 07:27:09 +02:00
368,
387
],
"loc": {
"start": {
"line": 15,
"column": 23
},
"end": {
"line": 15,
"column": 42
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
366,
387
],
"loc": {
"start": {
"line": 15,
"column": 21
},
"end": {
"line": 15,
"column": 42
}
}
},
{
"type": "Literal",
"value": 10,
"raw": "10",
"range": [
2015-08-06 07:27:09 +02:00
389,
391
],
"loc": {
"start": {
"line": 15,
"column": 44
},
"end": {
"line": 15,
"column": 46
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
357,
392
],
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 47
}
}
},
"alternate": {
"type": "Literal",
"value": 100000,
"raw": "100000",
"range": [
2015-08-06 07:27:09 +02:00
395,
401
],
"loc": {
"start": {
"line": 15,
"column": 50
},
"end": {
"line": 15,
"column": 56
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
312,
401
],
"loc": {
"start": {
"line": 14,
"column": 24
},
"end": {
"line": 15,
"column": 56
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
296,
401
],
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 15,
"column": 56
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
296,
402
],
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 15,
"column": 57
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
2015-08-06 07:27:09 +02:00
414,
418
],
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "tf",
"range": [
2015-08-06 07:27:09 +02:00
419,
421
],
"loc": {
"start": {
"line": 17,
"column": 13
},
"end": {
"line": 17,
"column": 15
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
414,
421
],
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 15
}
}
},
"right": {
"type": "Identifier",
"name": "tf",
"range": [
2015-08-06 07:27:09 +02:00
424,
426
],
"loc": {
"start": {
"line": 17,
"column": 18
},
"end": {
"line": 17,
"column": 20
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
414,
426
],
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 20
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
414,
427
],
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 21
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
253,
434
],
"loc": {
"start": {
"line": 11,
"column": 20
},
"end": {
"line": 18,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
2015-08-06 07:27:09 +02:00
248,
434
],
"loc": {
"start": {
"line": 11,
"column": 15
},
"end": {
"line": 18,
"column": 5
}
}
},
"kind": "constructor",
"computed": false,
"range": [
2015-08-06 07:27:09 +02:00
237,
434
],
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 18,
"column": 5
}
},
"leadingComments": [
{
"type": "Block",
2015-08-06 07:27:09 +02:00
"value": "*\r\n * Store, persistence manager\r\n * @param {Object} tf TableFilter instance\r\n *\r\n * TODO: use localStorage and fallback to cookie persistence\r\n ",
"range": [
2015-08-06 07:27:09 +02:00
62,
231
],
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 10,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "Block",
2015-08-06 07:27:09 +02:00
"value": "*\r\n * Store filters' values in cookie\r\n * @param {String} cookie name\r\n ",
"range": [
2015-08-06 07:27:09 +02:00
442,
530
],
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 23,
"column": 7
}
}
}
],
"static": false
},
{
"type": "MethodDefinition",
"key": {
"type": "Identifier",
"name": "saveFilterValues",
"range": [
2015-08-06 07:27:09 +02:00
536,
552
],
"loc": {
"start": {
"line": 24,
"column": 4
},
"end": {
"line": 24,
"column": 20
}
}
},
"value": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "name",
"range": [
2015-08-06 07:27:09 +02:00
553,
557
],
"loc": {
"start": {
"line": 24,
"column": 21
},
"end": {
"line": 24,
"column": 25
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "tf",
"range": [
2015-08-06 07:27:09 +02:00
573,
575
],
"loc": {
"start": {
"line": 25,
"column": 12
},
"end": {
"line": 25,
"column": 14
}
}
},
"init": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
2015-08-06 07:27:09 +02:00
578,
582
],
"loc": {
"start": {
"line": 25,
"column": 17
},
"end": {
"line": 25,
"column": 21
}
}
},
"property": {
"type": "Identifier",
"name": "tf",
"range": [
2015-08-06 07:27:09 +02:00
583,
585
],
"loc": {
"start": {
"line": 25,
"column": 22
},
"end": {
"line": 25,
"column": 24
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
578,
585
],
"loc": {
"start": {
"line": 25,
"column": 17
},
"end": {
"line": 25,
"column": 24
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
573,
585
],
"loc": {
"start": {
"line": 25,
"column": 12
},
"end": {
"line": 25,
"column": 24
}
}
}
],
"kind": "var",
"range": [
2015-08-06 07:27:09 +02:00
569,
586
],
"loc": {
"start": {
"line": 25,
"column": 8
},
"end": {
"line": 25,
"column": 25
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "fltValues",
"range": [
2015-08-06 07:27:09 +02:00
600,
609
],
"loc": {
"start": {
"line": 26,
"column": 12
},
"end": {
"line": 26,
"column": 21
}
}
},
"init": {
"type": "ArrayExpression",
"elements": [],
"range": [
2015-08-06 07:27:09 +02:00
612,
614
],
"loc": {
"start": {
"line": 26,
"column": 24
},
"end": {
"line": 26,
"column": 26
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
600,
614
],
"loc": {
"start": {
"line": 26,
"column": 12
},
"end": {
"line": 26,
"column": 26
}
}
}
],
"kind": "var",
"range": [
2015-08-06 07:27:09 +02:00
596,
615
],
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 26,
"column": 27
}
},
"trailingComments": [
{
"type": "Line",
"value": "store filters' values",
"range": [
2015-08-06 07:27:09 +02:00
625,
648
],
"loc": {
"start": {
"line": 27,
"column": 8
},
"end": {
"line": 27,
"column": 31
}
}
}
]
},
{
"type": "ForStatement",
"init": {
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "i",
"range": [
2015-08-06 07:27:09 +02:00
666,
667
],
"loc": {
"start": {
"line": 28,
"column": 16
},
"end": {
"line": 28,
"column": 17
}
}
},
"init": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
2015-08-06 07:27:09 +02:00
668,
669
],
"loc": {
"start": {
"line": 28,
"column": 18
},
"end": {
"line": 28,
"column": 19
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
666,
669
],
"loc": {
"start": {
"line": 28,
"column": 16
},
"end": {
"line": 28,
"column": 19
}
}
}
],
"kind": "var",
"range": [
2015-08-06 07:27:09 +02:00
662,
669
],
"loc": {
"start": {
"line": 28,
"column": 12
},
"end": {
"line": 28,
"column": 19
}
}
},
"test": {
"type": "BinaryExpression",
"operator": "<",
"left": {
"type": "Identifier",
"name": "i",
"range": [
2015-08-06 07:27:09 +02:00
671,
672
],
"loc": {
"start": {
"line": 28,
"column": 21
},
"end": {
"line": 28,
"column": 22
}
}
},
"right": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "tf",
"range": [
2015-08-06 07:27:09 +02:00
673,
675
],
"loc": {
"start": {
"line": 28,
"column": 23
},
"end": {
"line": 28,
"column": 25
}
}
},
"property": {
"type": "Identifier",
"name": "fltIds",
"range": [
2015-08-06 07:27:09 +02:00
676,
682
],
"loc": {
"start": {
"line": 28,
"column": 26
},
"end": {
"line": 28,
"column": 32
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
673,
682
],
"loc": {
"start": {
"line": 28,
"column": 23
},
"end": {
"line": 28,
"column": 32
}
}
},
"property": {
"type": "Identifier",
"name": "length",
"range": [
2015-08-06 07:27:09 +02:00
683,
689
],
"loc": {
"start": {
"line": 28,
"column": 33
},
"end": {
"line": 28,
"column": 39
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
673,
689
],
"loc": {
"start": {
"line": 28,
"column": 23
},
"end": {
"line": 28,
"column": 39
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
671,
689
],
"loc": {
"start": {
"line": 28,
"column": 21
},
"end": {
"line": 28,
"column": 39
}
}
},
"update": {
"type": "UpdateExpression",
"operator": "++",
"argument": {
"type": "Identifier",
"name": "i",
"range": [
2015-08-06 07:27:09 +02:00
691,
692
],
"loc": {
"start": {
"line": 28,
"column": 41
},
"end": {
"line": 28,
"column": 42
}
}
},
"prefix": false,
"range": [
2015-08-06 07:27:09 +02:00
691,
694
],
"loc": {
"start": {
"line": 28,
"column": 41
},
"end": {
"line": 28,
"column": 44
}
}
},
"body": {
"type": "BlockStatement",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "value",
"range": [
2015-08-06 07:27:09 +02:00
714,
719
],
"loc": {
"start": {
"line": 29,
"column": 16
},
"end": {
"line": 29,
"column": 21
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "tf",
"range": [
2015-08-06 07:27:09 +02:00
722,
724
],
"loc": {
"start": {
"line": 29,
"column": 24
},
"end": {
"line": 29,
"column": 26
}
}
},
"property": {
"type": "Identifier",
"name": "getFilterValue",
"range": [
2015-08-06 07:27:09 +02:00
725,
739
],
"loc": {
"start": {
"line": 29,
"column": 27
},
"end": {
"line": 29,
"column": 41
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
722,
739
],
"loc": {
"start": {
"line": 29,
"column": 24
},
"end": {
"line": 29,
"column": 41
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "i",
"range": [
2015-08-06 07:27:09 +02:00
740,
741
],
"loc": {
"start": {
"line": 29,
"column": 42
},
"end": {
"line": 29,
"column": 43
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
722,
742
],
"loc": {
"start": {
"line": 29,
"column": 24
},
"end": {
"line": 29,
"column": 44
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
714,
742
],
"loc": {
"start": {
"line": 29,
"column": 16
},
"end": {
"line": 29,
"column": 44
}
}
}
],
"kind": "var",
"range": [
2015-08-06 07:27:09 +02:00
710,
743
],
"loc": {
"start": {
"line": 29,
"column": 12
},
"end": {
"line": 29,
"column": 45
}
}
},
{
"type": "IfStatement",
"test": {
"type": "BinaryExpression",
"operator": "===",
"left": {
"type": "Identifier",
"name": "value",
"range": [
2015-08-06 07:27:09 +02:00
761,
766
],
"loc": {
"start": {
"line": 30,
"column": 16
},
"end": {
"line": 30,
"column": 21
}
}
},
"right": {
"type": "Literal",
"value": "",
"raw": "''",
"range": [
2015-08-06 07:27:09 +02:00
771,
773
],
"loc": {
"start": {
"line": 30,
"column": 26
},
"end": {
"line": 30,
"column": 28
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
761,
773
],
"loc": {
"start": {
"line": 30,
"column": 16
},
"end": {
"line": 30,
"column": 28
}
}
},
"consequent": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "value",
"range": [
2015-08-06 07:27:09 +02:00
793,
798
],
"loc": {
"start": {
"line": 31,
"column": 16
},
"end": {
"line": 31,
"column": 21
}
}
},
"right": {
"type": "Literal",
"value": " ",
"raw": "' '",
"range": [
2015-08-06 07:27:09 +02:00
801,
804
],
"loc": {
"start": {
"line": 31,
"column": 24
},
"end": {
"line": 31,
"column": 27
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
793,
804
],
"loc": {
"start": {
"line": 31,
"column": 16
},
"end": {
"line": 31,
"column": 27
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
793,
805
],
"loc": {
"start": {
"line": 31,
"column": 16
},
"end": {
"line": 31,
"column": 28
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
774,
820
],
"loc": {
"start": {
"line": 30,
"column": 29
},
"end": {
"line": 32,
"column": 13
}
}
},
"alternate": null,
"range": [
2015-08-06 07:27:09 +02:00
757,
820
],
"loc": {
"start": {
"line": 30,
"column": 12
},
"end": {
"line": 32,
"column": 13
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "fltValues",
"range": [
2015-08-06 07:27:09 +02:00
834,
843
],
"loc": {
"start": {
"line": 33,
"column": 12
},
"end": {
"line": 33,
"column": 21
}
}
},
"property": {
"type": "Identifier",
"name": "push",
"range": [
2015-08-06 07:27:09 +02:00
844,
848
],
"loc": {
"start": {
"line": 33,
"column": 22
},
"end": {
"line": 33,
"column": 26
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
834,
848
],
"loc": {
"start": {
"line": 33,
"column": 12
},
"end": {
"line": 33,
"column": 26
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "value",
"range": [
2015-08-06 07:27:09 +02:00
849,
854
],
"loc": {
"start": {
"line": 33,
"column": 27
},
"end": {
"line": 33,
"column": 32
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
834,
855
],
"loc": {
"start": {
"line": 33,
"column": 12
},
"end": {
"line": 33,
"column": 33
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
834,
856
],
"loc": {
"start": {
"line": 33,
"column": 12
},
"end": {
"line": 33,
"column": 34
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
695,
867
],
"loc": {
"start": {
"line": 28,
"column": 45
},
"end": {
"line": 34,
"column": 9
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
658,
867
],
"loc": {
"start": {
"line": 28,
"column": 8
},
"end": {
"line": 34,
"column": 9
}
},
"leadingComments": [
{
"type": "Line",
"value": "store filters' values",
"range": [
2015-08-06 07:27:09 +02:00
625,
648
],
"loc": {
"start": {
"line": 27,
"column": 8
},
"end": {
"line": 27,
"column": 31
}
}
}
],
"trailingComments": [
{
"type": "Line",
"value": "adds array size",
"range": [
2015-08-06 07:27:09 +02:00
877,
894
],
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 25
}
}
}
]
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "fltValues",
"range": [
2015-08-06 07:27:09 +02:00
904,
913
],
"loc": {
"start": {
"line": 36,
"column": 8
},
"end": {
"line": 36,
"column": 17
}
}
},
"property": {
"type": "Identifier",
"name": "push",
"range": [
2015-08-06 07:27:09 +02:00
914,
918
],
"loc": {
"start": {
"line": 36,
"column": 18
},
"end": {
"line": 36,
"column": 22
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
904,
918
],
"loc": {
"start": {
"line": 36,
"column": 8
},
"end": {
"line": 36,
"column": 22
}
}
},
"arguments": [
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "tf",
"range": [
2015-08-06 07:27:09 +02:00
919,
921
],
"loc": {
"start": {
"line": 36,
"column": 23
},
"end": {
"line": 36,
"column": 25
}
}
},
"property": {
"type": "Identifier",
"name": "fltIds",
"range": [
2015-08-06 07:27:09 +02:00
922,
928
],
"loc": {
"start": {
"line": 36,
"column": 26
},
"end": {
"line": 36,
"column": 32
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
919,
928
],
"loc": {
"start": {
"line": 36,
"column": 23
},
"end": {
"line": 36,
"column": 32
}
}
},
"property": {
"type": "Identifier",
"name": "length",
"range": [
2015-08-06 07:27:09 +02:00
929,
935
],
"loc": {
"start": {
"line": 36,
"column": 33
},
"end": {
"line": 36,
"column": 39
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
919,
935
],
"loc": {
"start": {
"line": 36,
"column": 23
},
"end": {
"line": 36,
"column": 39
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
904,
936
],
"loc": {
"start": {
"line": 36,
"column": 8
},
"end": {
"line": 36,
"column": 40
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
904,
937
],
"loc": {
"start": {
"line": 36,
"column": 8
},
"end": {
"line": 36,
"column": 41
}
},
"leadingComments": [
{
"type": "Line",
"value": "adds array size",
"range": [
2015-08-06 07:27:09 +02:00
877,
894
],
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 25
}
}
}
],
"trailingComments": [
{
"type": "Line",
"value": "writes cookie",
"range": [
2015-08-06 07:27:09 +02:00
949,
964
],
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 38,
"column": 23
}
}
}
]
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "Cookie",
"range": [
2015-08-06 07:27:09 +02:00
974,
980
],
"loc": {
"start": {
"line": 39,
"column": 8
},
"end": {
"line": 39,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"name": "write",
"range": [
2015-08-06 07:27:09 +02:00
981,
986
],
"loc": {
"start": {
"line": 39,
"column": 15
},
"end": {
"line": 39,
"column": 20
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
974,
986
],
"loc": {
"start": {
"line": 39,
"column": 8
},
"end": {
"line": 39,
"column": 20
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "name",
"range": [
2015-08-06 07:27:09 +02:00
1001,
1005
],
"loc": {
"start": {
"line": 40,
"column": 12
},
"end": {
"line": 40,
"column": 16
}
}
},
{
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "fltValues",
"range": [
2015-08-06 07:27:09 +02:00
1020,
1029
],
"loc": {
"start": {
"line": 41,
"column": 12
},
"end": {
"line": 41,
"column": 21
}
}
},
"property": {
"type": "Identifier",
"name": "join",
"range": [
2015-08-06 07:27:09 +02:00
1030,
1034
],
"loc": {
"start": {
"line": 41,
"column": 22
},
"end": {
"line": 41,
"column": 26
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1020,
1034
],
"loc": {
"start": {
"line": 41,
"column": 12
},
"end": {
"line": 41,
"column": 26
}
}
},
"arguments": [
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "tf",
"range": [
2015-08-06 07:27:09 +02:00
1035,
1037
],
"loc": {
"start": {
"line": 41,
"column": 27
},
"end": {
"line": 41,
"column": 29
}
}
},
"property": {
"type": "Identifier",
"name": "separator",
"range": [
2015-08-06 07:27:09 +02:00
1038,
1047
],
"loc": {
"start": {
"line": 41,
"column": 30
},
"end": {
"line": 41,
"column": 39
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1035,
1047
],
"loc": {
"start": {
"line": 41,
"column": 27
},
"end": {
"line": 41,
"column": 39
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
1020,
1048
],
"loc": {
"start": {
"line": 41,
"column": 12
},
"end": {
"line": 41,
"column": 40
}
}
},
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
2015-08-06 07:27:09 +02:00
1063,
1067
],
"loc": {
"start": {
"line": 42,
"column": 12
},
"end": {
"line": 42,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "duration",
"range": [
2015-08-06 07:27:09 +02:00
1068,
1076
],
"loc": {
"start": {
"line": 42,
"column": 17
},
"end": {
"line": 42,
"column": 25
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1063,
1076
],
"loc": {
"start": {
"line": 42,
"column": 12
},
"end": {
"line": 42,
"column": 25
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
974,
1087
],
"loc": {
"start": {
"line": 39,
"column": 8
},
"end": {
"line": 43,
"column": 9
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
974,
1088
],
"loc": {
"start": {
"line": 39,
"column": 8
},
"end": {
"line": 43,
"column": 10
}
},
"leadingComments": [
{
"type": "Line",
"value": "writes cookie",
"range": [
2015-08-06 07:27:09 +02:00
949,
964
],
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 38,
"column": 23
}
}
}
]
}
],
"range": [
2015-08-06 07:27:09 +02:00
558,
1095
],
"loc": {
"start": {
"line": 24,
"column": 26
},
"end": {
"line": 44,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
2015-08-06 07:27:09 +02:00
552,
1095
],
"loc": {
"start": {
"line": 24,
"column": 20
},
"end": {
"line": 44,
"column": 5
}
}
},
"kind": "method",
"computed": false,
"range": [
2015-08-06 07:27:09 +02:00
536,
1095
],
"loc": {
"start": {
"line": 24,
"column": 4
},
"end": {
"line": 44,
"column": 5
}
},
"leadingComments": [
{
"type": "Block",
2015-08-06 07:27:09 +02:00
"value": "*\r\n * Store filters' values in cookie\r\n * @param {String} cookie name\r\n ",
"range": [
2015-08-06 07:27:09 +02:00
442,
530
],
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 23,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "Block",
2015-08-06 07:27:09 +02:00
"value": "*\r\n * Retrieve filters' values from cookie\r\n * @param {String} cookie name\r\n * @return {Array}\r\n ",
"range": [
2015-08-06 07:27:09 +02:00
1103,
1220
],
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 50,
"column": 7
}
}
}
],
"static": false
},
{
"type": "MethodDefinition",
"key": {
"type": "Identifier",
"name": "getFilterValues",
"range": [
2015-08-06 07:27:09 +02:00
1226,
1241
],
"loc": {
"start": {
"line": 51,
"column": 4
},
"end": {
"line": 51,
"column": 19
}
}
},
"value": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "name",
"range": [
2015-08-06 07:27:09 +02:00
1242,
1246
],
"loc": {
"start": {
"line": 51,
"column": 20
},
"end": {
"line": 51,
"column": 24
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "flts",
"range": [
2015-08-06 07:27:09 +02:00
1262,
1266
],
"loc": {
"start": {
"line": 52,
"column": 12
},
"end": {
"line": 52,
"column": 16
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "Cookie",
"range": [
2015-08-06 07:27:09 +02:00
1269,
1275
],
"loc": {
"start": {
"line": 52,
"column": 19
},
"end": {
"line": 52,
"column": 25
}
}
},
"property": {
"type": "Identifier",
"name": "read",
"range": [
2015-08-06 07:27:09 +02:00
1276,
1280
],
"loc": {
"start": {
"line": 52,
"column": 26
},
"end": {
"line": 52,
"column": 30
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1269,
1280
],
"loc": {
"start": {
"line": 52,
"column": 19
},
"end": {
"line": 52,
"column": 30
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "name",
"range": [
2015-08-06 07:27:09 +02:00
1281,
1285
],
"loc": {
"start": {
"line": 52,
"column": 31
},
"end": {
"line": 52,
"column": 35
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
1269,
1286
],
"loc": {
"start": {
"line": 52,
"column": 19
},
"end": {
"line": 52,
"column": 36
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1262,
1286
],
"loc": {
"start": {
"line": 52,
"column": 12
},
"end": {
"line": 52,
"column": 36
}
}
}
],
"kind": "var",
"range": [
2015-08-06 07:27:09 +02:00
1258,
1287
],
"loc": {
"start": {
"line": 52,
"column": 8
},
"end": {
"line": 52,
"column": 37
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "rgx",
"range": [
2015-08-06 07:27:09 +02:00
1301,
1304
],
"loc": {
"start": {
"line": 53,
"column": 12
},
"end": {
"line": 53,
"column": 15
}
}
},
"init": {
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "RegExp",
"range": [
2015-08-06 07:27:09 +02:00
1311,
1317
],
"loc": {
"start": {
"line": 53,
"column": 22
},
"end": {
"line": 53,
"column": 28
}
}
},
"arguments": [
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
2015-08-06 07:27:09 +02:00
1318,
1322
],
"loc": {
"start": {
"line": 53,
"column": 29
},
"end": {
"line": 53,
"column": 33
}
}
},
"property": {
"type": "Identifier",
"name": "tf",
"range": [
2015-08-06 07:27:09 +02:00
1323,
1325
],
"loc": {
"start": {
"line": 53,
"column": 34
},
"end": {
"line": 53,
"column": 36
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1318,
1325
],
"loc": {
"start": {
"line": 53,
"column": 29
},
"end": {
"line": 53,
"column": 36
}
}
},
"property": {
"type": "Identifier",
"name": "separator",
"range": [
2015-08-06 07:27:09 +02:00
1326,
1335
],
"loc": {
"start": {
"line": 53,
"column": 37
},
"end": {
"line": 53,
"column": 46
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1318,
1335
],
"loc": {
"start": {
"line": 53,
"column": 29
},
"end": {
"line": 53,
"column": 46
}
}
},
{
"type": "Literal",
"value": "g",
"raw": "'g'",
"range": [
2015-08-06 07:27:09 +02:00
1337,
1340
],
"loc": {
"start": {
"line": 53,
"column": 48
},
"end": {
"line": 53,
"column": 51
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
1307,
1341
],
"loc": {
"start": {
"line": 53,
"column": 18
},
"end": {
"line": 53,
"column": 52
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1301,
1341
],
"loc": {
"start": {
"line": 53,
"column": 12
},
"end": {
"line": 53,
"column": 52
}
}
}
],
"kind": "var",
"range": [
2015-08-06 07:27:09 +02:00
1297,
1342
],
"loc": {
"start": {
"line": 53,
"column": 8
},
"end": {
"line": 53,
"column": 53
}
},
"trailingComments": [
{
"type": "Line",
"value": " filters' values array",
"range": [
2015-08-06 07:27:09 +02:00
1352,
1376
],
"loc": {
"start": {
"line": 54,
"column": 8
},
"end": {
"line": 54,
"column": 32
}
}
}
]
},
{
"type": "ReturnStatement",
"argument": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "flts",
"range": [
2015-08-06 07:27:09 +02:00
1393,
1397
],
"loc": {
"start": {
"line": 55,
"column": 15
},
"end": {
"line": 55,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"name": "split",
"range": [
2015-08-06 07:27:09 +02:00
1398,
1403
],
"loc": {
"start": {
"line": 55,
"column": 20
},
"end": {
"line": 55,
"column": 25
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1393,
1403
],
"loc": {
"start": {
"line": 55,
"column": 15
},
"end": {
"line": 55,
"column": 25
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "rgx",
"range": [
2015-08-06 07:27:09 +02:00
1404,
1407
],
"loc": {
"start": {
"line": 55,
"column": 26
},
"end": {
"line": 55,
"column": 29
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
1393,
1408
],
"loc": {
"start": {
"line": 55,
"column": 15
},
"end": {
"line": 55,
"column": 30
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1386,
1409
],
"loc": {
"start": {
"line": 55,
"column": 8
},
"end": {
"line": 55,
"column": 31
}
},
"leadingComments": [
{
"type": "Line",
"value": " filters' values array",
"range": [
2015-08-06 07:27:09 +02:00
1352,
1376
],
"loc": {
"start": {
"line": 54,
"column": 8
},
"end": {
"line": 54,
"column": 32
}
}
}
]
}
],
"range": [
2015-08-06 07:27:09 +02:00
1247,
1416
],
"loc": {
"start": {
"line": 51,
"column": 25
},
"end": {
"line": 56,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
2015-08-06 07:27:09 +02:00
1241,
1416
],
"loc": {
"start": {
"line": 51,
"column": 19
},
"end": {
"line": 56,
"column": 5
}
}
},
"kind": "method",
"computed": false,
"range": [
2015-08-06 07:27:09 +02:00
1226,
1416
],
"loc": {
"start": {
"line": 51,
"column": 4
},
"end": {
"line": 56,
"column": 5
}
},
"leadingComments": [
{
"type": "Block",
2015-08-06 07:27:09 +02:00
"value": "*\r\n * Retrieve filters' values from cookie\r\n * @param {String} cookie name\r\n * @return {Array}\r\n ",
"range": [
2015-08-06 07:27:09 +02:00
1103,
1220
],
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 50,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "Block",
2015-08-06 07:27:09 +02:00
"value": "*\r\n * Store page number in cookie\r\n * @param {String} cookie name\r\n ",
"range": [
2015-08-06 07:27:09 +02:00
1424,
1508
],
"loc": {
"start": {
"line": 58,
"column": 4
},
"end": {
"line": 61,
"column": 7
}
}
}
],
"static": false
},
{
"type": "MethodDefinition",
"key": {
"type": "Identifier",
"name": "savePageNb",
"range": [
2015-08-06 07:27:09 +02:00
1514,
1524
],
"loc": {
"start": {
"line": 62,
"column": 4
},
"end": {
"line": 62,
"column": 14
}
}
},
"value": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "name",
"range": [
2015-08-06 07:27:09 +02:00
1525,
1529
],
"loc": {
"start": {
"line": 62,
"column": 15
},
"end": {
"line": 62,
"column": 19
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "Cookie",
"range": [
2015-08-06 07:27:09 +02:00
1541,
1547
],
"loc": {
"start": {
"line": 63,
"column": 8
},
"end": {
"line": 63,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"name": "write",
"range": [
2015-08-06 07:27:09 +02:00
1548,
1553
],
"loc": {
"start": {
"line": 63,
"column": 15
},
"end": {
"line": 63,
"column": 20
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1541,
1553
],
"loc": {
"start": {
"line": 63,
"column": 8
},
"end": {
"line": 63,
"column": 20
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "name",
"range": [
2015-08-06 07:27:09 +02:00
1568,
1572
],
"loc": {
"start": {
"line": 64,
"column": 12
},
"end": {
"line": 64,
"column": 16
}
}
},
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
2015-08-06 07:27:09 +02:00
1587,
1591
],
"loc": {
"start": {
"line": 65,
"column": 12
},
"end": {
"line": 65,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "tf",
"range": [
2015-08-06 07:27:09 +02:00
1592,
1594
],
"loc": {
"start": {
"line": 65,
"column": 17
},
"end": {
"line": 65,
"column": 19
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1587,
1594
],
"loc": {
"start": {
"line": 65,
"column": 12
},
"end": {
"line": 65,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"name": "feature",
"range": [
2015-08-06 07:27:09 +02:00
1595,
1602
],
"loc": {
"start": {
"line": 65,
"column": 20
},
"end": {
"line": 65,
"column": 27
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1587,
1602
],
"loc": {
"start": {
"line": 65,
"column": 12
},
"end": {
"line": 65,
"column": 27
}
}
},
"arguments": [
{
"type": "Literal",
"value": "paging",
"raw": "'paging'",
"range": [
2015-08-06 07:27:09 +02:00
1603,
1611
],
"loc": {
"start": {
"line": 65,
"column": 28
},
"end": {
"line": 65,
"column": 36
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
1587,
1612
],
"loc": {
"start": {
"line": 65,
"column": 12
},
"end": {
"line": 65,
"column": 37
}
}
},
"property": {
"type": "Identifier",
"name": "currentPageNb",
"range": [
2015-08-06 07:27:09 +02:00
1613,
1626
],
"loc": {
"start": {
"line": 65,
"column": 38
},
"end": {
"line": 65,
"column": 51
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1587,
1626
],
"loc": {
"start": {
"line": 65,
"column": 12
},
"end": {
"line": 65,
"column": 51
}
}
},
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
2015-08-06 07:27:09 +02:00
1641,
1645
],
"loc": {
"start": {
"line": 66,
"column": 12
},
"end": {
"line": 66,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "duration",
"range": [
2015-08-06 07:27:09 +02:00
1646,
1654
],
"loc": {
"start": {
"line": 66,
"column": 17
},
"end": {
"line": 66,
"column": 25
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1641,
1654
],
"loc": {
"start": {
"line": 66,
"column": 12
},
"end": {
"line": 66,
"column": 25
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
1541,
1665
],
"loc": {
"start": {
"line": 63,
"column": 8
},
"end": {
"line": 67,
"column": 9
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1541,
1666
],
"loc": {
"start": {
"line": 63,
"column": 8
},
"end": {
"line": 67,
"column": 10
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
1530,
1673
],
"loc": {
"start": {
"line": 62,
"column": 20
},
"end": {
"line": 68,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
2015-08-06 07:27:09 +02:00
1524,
1673
],
"loc": {
"start": {
"line": 62,
"column": 14
},
"end": {
"line": 68,
"column": 5
}
}
},
"kind": "method",
"computed": false,
"range": [
2015-08-06 07:27:09 +02:00
1514,
1673
],
"loc": {
"start": {
"line": 62,
"column": 4
},
"end": {
"line": 68,
"column": 5
}
},
"leadingComments": [
{
"type": "Block",
2015-08-06 07:27:09 +02:00
"value": "*\r\n * Store page number in cookie\r\n * @param {String} cookie name\r\n ",
"range": [
2015-08-06 07:27:09 +02:00
1424,
1508
],
"loc": {
"start": {
"line": 58,
"column": 4
},
"end": {
"line": 61,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "Block",
2015-08-06 07:27:09 +02:00
"value": "*\r\n * Retrieve page number from cookie\r\n * @param {String} cookie name\r\n * @return {String}\r\n ",
"range": [
2015-08-06 07:27:09 +02:00
1681,
1795
],
"loc": {
"start": {
"line": 70,
"column": 4
},
"end": {
"line": 74,
"column": 7
}
}
}
],
"static": false
},
{
"type": "MethodDefinition",
"key": {
"type": "Identifier",
"name": "getPageNb",
"range": [
2015-08-06 07:27:09 +02:00
1801,
1810
],
"loc": {
"start": {
"line": 75,
"column": 4
},
"end": {
"line": 75,
"column": 13
}
}
},
"value": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "name",
"range": [
2015-08-06 07:27:09 +02:00
1811,
1815
],
"loc": {
"start": {
"line": 75,
"column": 14
},
"end": {
"line": 75,
"column": 18
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "Cookie",
"range": [
2015-08-06 07:27:09 +02:00
1834,
1840
],
"loc": {
"start": {
"line": 76,
"column": 15
},
"end": {
"line": 76,
"column": 21
}
}
},
"property": {
"type": "Identifier",
"name": "read",
"range": [
2015-08-06 07:27:09 +02:00
1841,
1845
],
"loc": {
"start": {
"line": 76,
"column": 22
},
"end": {
"line": 76,
"column": 26
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1834,
1845
],
"loc": {
"start": {
"line": 76,
"column": 15
},
"end": {
"line": 76,
"column": 26
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "name",
"range": [
2015-08-06 07:27:09 +02:00
1846,
1850
],
"loc": {
"start": {
"line": 76,
"column": 27
},
"end": {
"line": 76,
"column": 31
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
1834,
1851
],
"loc": {
"start": {
"line": 76,
"column": 15
},
"end": {
"line": 76,
"column": 32
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1827,
1852
],
"loc": {
"start": {
"line": 76,
"column": 8
},
"end": {
"line": 76,
"column": 33
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
1816,
1859
],
"loc": {
"start": {
"line": 75,
"column": 19
},
"end": {
"line": 77,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
2015-08-06 07:27:09 +02:00
1810,
1859
],
"loc": {
"start": {
"line": 75,
"column": 13
},
"end": {
"line": 77,
"column": 5
}
}
},
"kind": "method",
"computed": false,
"range": [
2015-08-06 07:27:09 +02:00
1801,
1859
],
"loc": {
"start": {
"line": 75,
"column": 4
},
"end": {
"line": 77,
"column": 5
}
},
"leadingComments": [
{
"type": "Block",
2015-08-06 07:27:09 +02:00
"value": "*\r\n * Retrieve page number from cookie\r\n * @param {String} cookie name\r\n * @return {String}\r\n ",
"range": [
2015-08-06 07:27:09 +02:00
1681,
1795
],
"loc": {
"start": {
"line": 70,
"column": 4
},
"end": {
"line": 74,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "Block",
2015-08-06 07:27:09 +02:00
"value": "*\r\n * Store page length in cookie\r\n * @param {String} cookie name\r\n ",
"range": [
2015-08-06 07:27:09 +02:00
1867,
1951
],
"loc": {
"start": {
"line": 79,
"column": 4
},
"end": {
"line": 82,
"column": 7
}
}
}
],
"static": false
},
{
"type": "MethodDefinition",
"key": {
"type": "Identifier",
"name": "savePageLength",
"range": [
2015-08-06 07:27:09 +02:00
1957,
1971
],
"loc": {
"start": {
"line": 83,
"column": 4
},
"end": {
"line": 83,
"column": 18
}
}
},
"value": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "name",
"range": [
2015-08-06 07:27:09 +02:00
1972,
1976
],
"loc": {
"start": {
"line": 83,
"column": 19
},
"end": {
"line": 83,
"column": 23
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "Cookie",
"range": [
2015-08-06 07:27:09 +02:00
1988,
1994
],
"loc": {
"start": {
"line": 84,
"column": 8
},
"end": {
"line": 84,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"name": "write",
"range": [
2015-08-06 07:27:09 +02:00
1995,
2000
],
"loc": {
"start": {
"line": 84,
"column": 15
},
"end": {
"line": 84,
"column": 20
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1988,
2000
],
"loc": {
"start": {
"line": 84,
"column": 8
},
"end": {
"line": 84,
"column": 20
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "name",
"range": [
2015-08-06 07:27:09 +02:00
2015,
2019
],
"loc": {
"start": {
"line": 85,
"column": 12
},
"end": {
"line": 85,
"column": 16
}
}
},
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
2015-08-06 07:27:09 +02:00
2034,
2038
],
"loc": {
"start": {
"line": 86,
"column": 12
},
"end": {
"line": 86,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "tf",
"range": [
2015-08-06 07:27:09 +02:00
2039,
2041
],
"loc": {
"start": {
"line": 86,
"column": 17
},
"end": {
"line": 86,
"column": 19
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2034,
2041
],
"loc": {
"start": {
"line": 86,
"column": 12
},
"end": {
"line": 86,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"name": "feature",
"range": [
2015-08-06 07:27:09 +02:00
2042,
2049
],
"loc": {
"start": {
"line": 86,
"column": 20
},
"end": {
"line": 86,
"column": 27
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2034,
2049
],
"loc": {
"start": {
"line": 86,
"column": 12
},
"end": {
"line": 86,
"column": 27
}
}
},
"arguments": [
{
"type": "Literal",
"value": "paging",
"raw": "'paging'",
"range": [
2015-08-06 07:27:09 +02:00
2050,
2058
],
"loc": {
"start": {
"line": 86,
"column": 28
},
"end": {
"line": 86,
"column": 36
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2034,
2059
],
"loc": {
"start": {
"line": 86,
"column": 12
},
"end": {
"line": 86,
"column": 37
}
}
},
"property": {
"type": "Identifier",
"name": "resultsPerPageSlc",
"range": [
2015-08-06 07:27:09 +02:00
2060,
2077
],
"loc": {
"start": {
"line": 86,
"column": 38
},
"end": {
"line": 86,
"column": 55
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2034,
2077
],
"loc": {
"start": {
"line": 86,
"column": 12
},
"end": {
"line": 86,
"column": 55
}
}
},
"property": {
"type": "Identifier",
"name": "selectedIndex",
"range": [
2015-08-06 07:27:09 +02:00
2078,
2091
],
"loc": {
"start": {
"line": 86,
"column": 56
},
"end": {
"line": 86,
"column": 69
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2034,
2091
],
"loc": {
"start": {
"line": 86,
"column": 12
},
"end": {
"line": 86,
"column": 69
}
}
},
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
2015-08-06 07:27:09 +02:00
2106,
2110
],
"loc": {
"start": {
"line": 87,
"column": 12
},
"end": {
"line": 87,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "duration",
"range": [
2015-08-06 07:27:09 +02:00
2111,
2119
],
"loc": {
"start": {
"line": 87,
"column": 17
},
"end": {
"line": 87,
"column": 25
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2106,
2119
],
"loc": {
"start": {
"line": 87,
"column": 12
},
"end": {
"line": 87,
"column": 25
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
1988,
2130
],
"loc": {
"start": {
"line": 84,
"column": 8
},
"end": {
"line": 88,
"column": 9
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
1988,
2131
],
"loc": {
"start": {
"line": 84,
"column": 8
},
"end": {
"line": 88,
"column": 10
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
1977,
2138
],
"loc": {
"start": {
"line": 83,
"column": 24
},
"end": {
"line": 89,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
2015-08-06 07:27:09 +02:00
1971,
2138
],
"loc": {
"start": {
"line": 83,
"column": 18
},
"end": {
"line": 89,
"column": 5
}
}
},
"kind": "method",
"computed": false,
"range": [
2015-08-06 07:27:09 +02:00
1957,
2138
],
"loc": {
"start": {
"line": 83,
"column": 4
},
"end": {
"line": 89,
"column": 5
}
},
"leadingComments": [
{
"type": "Block",
2015-08-06 07:27:09 +02:00
"value": "*\r\n * Store page length in cookie\r\n * @param {String} cookie name\r\n ",
"range": [
2015-08-06 07:27:09 +02:00
1867,
1951
],
"loc": {
"start": {
"line": 79,
"column": 4
},
"end": {
"line": 82,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "Block",
2015-08-06 07:27:09 +02:00
"value": "*\r\n * Retrieve page length from cookie\r\n * @param {String} cookie name\r\n * @return {String}\r\n ",
"range": [
2015-08-06 07:27:09 +02:00
2146,
2260
],
"loc": {
"start": {
"line": 91,
"column": 4
},
"end": {
"line": 95,
"column": 7
}
}
}
],
"static": false
},
{
"type": "MethodDefinition",
"key": {
"type": "Identifier",
"name": "getPageLength",
"range": [
2015-08-06 07:27:09 +02:00
2266,
2279
],
"loc": {
"start": {
"line": 96,
"column": 4
},
"end": {
"line": 96,
"column": 17
}
}
},
"value": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "name",
"range": [
2015-08-06 07:27:09 +02:00
2280,
2284
],
"loc": {
"start": {
"line": 96,
"column": 18
},
"end": {
"line": 96,
"column": 22
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "Cookie",
"range": [
2015-08-06 07:27:09 +02:00
2303,
2309
],
"loc": {
"start": {
"line": 97,
"column": 15
},
"end": {
"line": 97,
"column": 21
}
}
},
"property": {
"type": "Identifier",
"name": "read",
"range": [
2015-08-06 07:27:09 +02:00
2310,
2314
],
"loc": {
"start": {
"line": 97,
"column": 22
},
"end": {
"line": 97,
"column": 26
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2303,
2314
],
"loc": {
"start": {
"line": 97,
"column": 15
},
"end": {
"line": 97,
"column": 26
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "name",
"range": [
2015-08-06 07:27:09 +02:00
2315,
2319
],
"loc": {
"start": {
"line": 97,
"column": 27
},
"end": {
"line": 97,
"column": 31
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2303,
2320
],
"loc": {
"start": {
"line": 97,
"column": 15
},
"end": {
"line": 97,
"column": 32
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
2296,
2321
],
"loc": {
"start": {
"line": 97,
"column": 8
},
"end": {
"line": 97,
"column": 33
}
}
}
],
"range": [
2015-08-06 07:27:09 +02:00
2285,
2328
],
"loc": {
"start": {
"line": 96,
"column": 23
},
"end": {
"line": 98,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
2015-08-06 07:27:09 +02:00
2279,
2328
],
"loc": {
"start": {
"line": 96,
"column": 17
},
"end": {
"line": 98,
"column": 5
}
}
},
"kind": "method",
"computed": false,
"range": [
2015-08-06 07:27:09 +02:00
2266,
2328
],
"loc": {
"start": {
"line": 96,
"column": 4
},
"end": {
"line": 98,
"column": 5
}
},
"leadingComments": [
{
"type": "Block",
2015-08-06 07:27:09 +02:00
"value": "*\r\n * Retrieve page length from cookie\r\n * @param {String} cookie name\r\n * @return {String}\r\n ",
"range": [
2015-08-06 07:27:09 +02:00
2146,
2260
],
"loc": {
"start": {
"line": 91,
"column": 4
},
"end": {
"line": 95,
"column": 7
}
}
}
],
"static": false
}
],
"range": [
2015-08-06 07:27:09 +02:00
53,
2333
],
"loc": {
"start": {
"line": 3,
"column": 18
},
"end": {
"line": 100,
"column": 1
}
}
},
"range": [
2015-08-06 07:27:09 +02:00
42,
2333
],
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 100,
"column": 1
}
},
"leadingComments": [],
"trailingComments": []
},
"specifiers": [],
"source": null,
"range": [
2015-08-06 07:27:09 +02:00
35,
2333
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 100,
"column": 1
}
}
}
],
"sourceType": "module",
"range": [
0,
2015-08-06 07:27:09 +02:00
2333
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 100,
"column": 1
}
},
"comments": [
{
"type": "Block",
2015-08-06 07:27:09 +02:00
"value": "*\r\n * Store, persistence manager\r\n * @param {Object} tf TableFilter instance\r\n *\r\n * TODO: use localStorage and fallback to cookie persistence\r\n ",
"range": [
2015-08-06 07:27:09 +02:00
62,
231
],
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 10,
"column": 7
}
}
},
{
"type": "Block",
2015-08-06 07:27:09 +02:00
"value": "*\r\n * Store filters' values in cookie\r\n * @param {String} cookie name\r\n ",
"range": [
2015-08-06 07:27:09 +02:00
442,
530
],
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 23,
"column": 7
}
}
},
{
"type": "Line",
"value": "store filters' values",
"range": [
2015-08-06 07:27:09 +02:00
625,
648
],
"loc": {
"start": {
"line": 27,
"column": 8
},
"end": {
"line": 27,
"column": 31
}
}
},
{
"type": "Line",
"value": "adds array size",
"range": [
2015-08-06 07:27:09 +02:00
877,
894
],
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 25
}
}
},
{
"type": "Line",
"value": "writes cookie",
"range": [
2015-08-06 07:27:09 +02:00
949,
964
],
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 38,
"column": 23
}
}
},
{
"type": "Block",
2015-08-06 07:27:09 +02:00
"value": "*\r\n * Retrieve filters' values from cookie\r\n * @param {String} cookie name\r\n * @return {Array}\r\n ",
"range": [
2015-08-06 07:27:09 +02:00
1103,
1220
],
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 50,
"column": 7
}
}
},
{
"type": "Line",
"value": " filters' values array",
"range": [
2015-08-06 07:27:09 +02:00
1352,
1376
],
"loc": {
"start": {
"line": 54,
"column": 8
},
"end": {
"line": 54,
"column": 32
}
}
},
{
"type": "Block",
2015-08-06 07:27:09 +02:00
"value": "*\r\n * Store page number in cookie\r\n * @param {String} cookie name\r\n ",
"range": [
2015-08-06 07:27:09 +02:00
1424,
1508
],
"loc": {
"start": {
"line": 58,
"column": 4
},
"end": {
"line": 61,
"column": 7
}
}
},
{
"type": "Block",
2015-08-06 07:27:09 +02:00
"value": "*\r\n * Retrieve page number from cookie\r\n * @param {String} cookie name\r\n * @return {String}\r\n ",
"range": [
2015-08-06 07:27:09 +02:00
1681,
1795
],
"loc": {
"start": {
"line": 70,
"column": 4
},
"end": {
"line": 74,
"column": 7
}
}
},
{
"type": "Block",
2015-08-06 07:27:09 +02:00
"value": "*\r\n * Store page length in cookie\r\n * @param {String} cookie name\r\n ",
"range": [
2015-08-06 07:27:09 +02:00
1867,
1951
],
"loc": {
"start": {
"line": 79,
"column": 4
},
"end": {
"line": 82,
"column": 7
}
}
},
{
"type": "Block",
2015-08-06 07:27:09 +02:00
"value": "*\r\n * Retrieve page length from cookie\r\n * @param {String} cookie name\r\n * @return {String}\r\n ",
"range": [
2015-08-06 07:27:09 +02:00
2146,
2260
],
"loc": {
"start": {
"line": 91,
"column": 4
},
"end": {
"line": 95,
"column": 7
}
}
}
]
}