1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-06-26 09:20:26 +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-05 09:31:12 +02:00
46,
51
],
"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-05 09:31:12 +02:00
227,
238
],
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 15
}
}
},
"value": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "tf",
"range": [
2015-08-05 09:31:12 +02:00
239,
241
],
"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-05 09:31:12 +02:00
257,
258
],
"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-05 09:31:12 +02:00
261,
263
],
"loc": {
"start": {
"line": 12,
"column": 16
},
"end": {
"line": 12,
"column": 18
}
}
},
"property": {
"type": "Identifier",
"name": "config",
"range": [
2015-08-05 09:31:12 +02:00
264,
270
],
"loc": {
"start": {
"line": 12,
"column": 19
},
"end": {
"line": 12,
"column": 25
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
261,
270
],
"loc": {
"start": {
"line": 12,
"column": 16
},
"end": {
"line": 12,
"column": 25
}
}
},
"arguments": [],
"range": [
2015-08-05 09:31:12 +02:00
261,
272
],
"loc": {
"start": {
"line": 12,
"column": 16
},
"end": {
"line": 12,
"column": 27
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
257,
272
],
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 27
}
}
}
],
"kind": "var",
"range": [
2015-08-05 09:31:12 +02:00
253,
273
],
"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-05 09:31:12 +02:00
283,
287
],
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "duration",
"range": [
2015-08-05 09:31:12 +02:00
288,
296
],
"loc": {
"start": {
"line": 14,
"column": 13
},
"end": {
"line": 14,
"column": 21
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
283,
296
],
"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-05 09:31:12 +02:00
300,
305
],
"loc": {
"start": {
"line": 14,
"column": 25
},
"end": {
"line": 14,
"column": 30
}
}
},
"arguments": [
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "f",
"range": [
2015-08-05 09:31:12 +02:00
306,
307
],
"loc": {
"start": {
"line": 14,
"column": 31
},
"end": {
"line": 14,
"column": 32
}
}
},
"property": {
"type": "Identifier",
"name": "set_cookie_duration",
"range": [
2015-08-05 09:31:12 +02:00
308,
327
],
"loc": {
"start": {
"line": 14,
"column": 33
},
"end": {
"line": 14,
"column": 52
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
306,
327
],
"loc": {
"start": {
"line": 14,
"column": 31
},
"end": {
"line": 14,
"column": 52
}
}
}
],
"range": [
2015-08-05 09:31:12 +02:00
300,
328
],
"loc": {
"start": {
"line": 14,
"column": 25
},
"end": {
"line": 14,
"column": 53
}
}
},
"prefix": true,
"range": [
2015-08-05 09:31:12 +02:00
299,
328
],
"loc": {
"start": {
"line": 14,
"column": 24
},
"end": {
"line": 14,
"column": 53
}
}
},
"consequent": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "parseInt",
"range": [
2015-08-05 09:31:12 +02:00
343,
351
],
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 20
}
}
},
"arguments": [
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "f",
"range": [
2015-08-05 09:31:12 +02:00
352,
353
],
"loc": {
"start": {
"line": 15,
"column": 21
},
"end": {
"line": 15,
"column": 22
}
}
},
"property": {
"type": "Identifier",
"name": "set_cookie_duration",
"range": [
2015-08-05 09:31:12 +02:00
354,
373
],
"loc": {
"start": {
"line": 15,
"column": 23
},
"end": {
"line": 15,
"column": 42
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
352,
373
],
"loc": {
"start": {
"line": 15,
"column": 21
},
"end": {
"line": 15,
"column": 42
}
}
},
{
"type": "Literal",
"value": 10,
"raw": "10",
"range": [
2015-08-05 09:31:12 +02:00
375,
377
],
"loc": {
"start": {
"line": 15,
"column": 44
},
"end": {
"line": 15,
"column": 46
}
}
}
],
"range": [
2015-08-05 09:31:12 +02:00
343,
378
],
"loc": {
"start": {
"line": 15,
"column": 12
},
"end": {
"line": 15,
"column": 47
}
}
},
"alternate": {
"type": "Literal",
"value": 100000,
"raw": "100000",
"range": [
2015-08-05 09:31:12 +02:00
381,
387
],
"loc": {
"start": {
"line": 15,
"column": 50
},
"end": {
"line": 15,
"column": 56
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
299,
387
],
"loc": {
"start": {
"line": 14,
"column": 24
},
"end": {
"line": 15,
"column": 56
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
283,
387
],
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 15,
"column": 56
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
283,
388
],
"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-05 09:31:12 +02:00
398,
402
],
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"name": "tf",
"range": [
2015-08-05 09:31:12 +02:00
403,
405
],
"loc": {
"start": {
"line": 17,
"column": 13
},
"end": {
"line": 17,
"column": 15
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
398,
405
],
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 15
}
}
},
"right": {
"type": "Identifier",
"name": "tf",
"range": [
2015-08-05 09:31:12 +02:00
408,
410
],
"loc": {
"start": {
"line": 17,
"column": 18
},
"end": {
"line": 17,
"column": 20
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
398,
410
],
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 20
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
398,
411
],
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 21
}
}
}
],
"range": [
2015-08-05 09:31:12 +02:00
243,
417
],
"loc": {
"start": {
"line": 11,
"column": 20
},
"end": {
"line": 18,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
2015-08-05 09:31:12 +02:00
238,
417
],
"loc": {
"start": {
"line": 11,
"column": 15
},
"end": {
"line": 18,
"column": 5
}
}
},
"kind": "constructor",
"computed": false,
"range": [
2015-08-05 09:31:12 +02:00
227,
417
],
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 18,
"column": 5
}
},
"leadingComments": [
{
"type": "Block",
2015-08-05 09:31:12 +02:00
"value": "*\n * Store, persistence manager\n * @param {Object} tf TableFilter instance\n *\n * TODO: use localStorage and fallback to cookie persistence\n ",
"range": [
2015-08-05 09:31:12 +02:00
58,
222
],
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 10,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "Block",
2015-08-05 09:31:12 +02:00
"value": "*\n * Store filters' values in cookie\n * @param {String} cookie name\n ",
"range": [
2015-08-05 09:31:12 +02:00
423,
508
],
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 23,
"column": 7
}
}
}
],
"static": false
},
{
"type": "MethodDefinition",
"key": {
"type": "Identifier",
"name": "saveFilterValues",
"range": [
2015-08-05 09:31:12 +02:00
513,
529
],
"loc": {
"start": {
"line": 24,
"column": 4
},
"end": {
"line": 24,
"column": 20
}
}
},
"value": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "name",
"range": [
2015-08-05 09:31:12 +02:00
530,
534
],
"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-05 09:31:12 +02:00
549,
551
],
"loc": {
"start": {
"line": 25,
"column": 12
},
"end": {
"line": 25,
"column": 14
}
}
},
"init": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
2015-08-05 09:31:12 +02:00
554,
558
],
"loc": {
"start": {
"line": 25,
"column": 17
},
"end": {
"line": 25,
"column": 21
}
}
},
"property": {
"type": "Identifier",
"name": "tf",
"range": [
2015-08-05 09:31:12 +02:00
559,
561
],
"loc": {
"start": {
"line": 25,
"column": 22
},
"end": {
"line": 25,
"column": 24
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
554,
561
],
"loc": {
"start": {
"line": 25,
"column": 17
},
"end": {
"line": 25,
"column": 24
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
549,
561
],
"loc": {
"start": {
"line": 25,
"column": 12
},
"end": {
"line": 25,
"column": 24
}
}
}
],
"kind": "var",
"range": [
2015-08-05 09:31:12 +02:00
545,
562
],
"loc": {
"start": {
"line": 25,
"column": 8
},
"end": {
"line": 25,
"column": 25
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "fltValues",
"range": [
2015-08-05 09:31:12 +02:00
575,
584
],
"loc": {
"start": {
"line": 26,
"column": 12
},
"end": {
"line": 26,
"column": 21
}
}
},
"init": {
"type": "ArrayExpression",
"elements": [],
"range": [
2015-08-05 09:31:12 +02:00
587,
589
],
"loc": {
"start": {
"line": 26,
"column": 24
},
"end": {
"line": 26,
"column": 26
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
575,
589
],
"loc": {
"start": {
"line": 26,
"column": 12
},
"end": {
"line": 26,
"column": 26
}
}
}
],
"kind": "var",
"range": [
2015-08-05 09:31:12 +02:00
571,
590
],
"loc": {
"start": {
"line": 26,
"column": 8
},
"end": {
"line": 26,
"column": 27
}
},
"trailingComments": [
{
"type": "Line",
"value": "store filters' values",
"range": [
2015-08-05 09:31:12 +02:00
599,
622
],
"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-05 09:31:12 +02:00
639,
640
],
"loc": {
"start": {
"line": 28,
"column": 16
},
"end": {
"line": 28,
"column": 17
}
}
},
"init": {
"type": "Literal",
"value": 0,
"raw": "0",
"range": [
2015-08-05 09:31:12 +02:00
641,
642
],
"loc": {
"start": {
"line": 28,
"column": 18
},
"end": {
"line": 28,
"column": 19
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
639,
642
],
"loc": {
"start": {
"line": 28,
"column": 16
},
"end": {
"line": 28,
"column": 19
}
}
}
],
"kind": "var",
"range": [
2015-08-05 09:31:12 +02:00
635,
642
],
"loc": {
"start": {
"line": 28,
"column": 12
},
"end": {
"line": 28,
"column": 19
}
}
},
"test": {
"type": "BinaryExpression",
"operator": "<",
"left": {
"type": "Identifier",
"name": "i",
"range": [
2015-08-05 09:31:12 +02:00
644,
645
],
"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-05 09:31:12 +02:00
646,
648
],
"loc": {
"start": {
"line": 28,
"column": 23
},
"end": {
"line": 28,
"column": 25
}
}
},
"property": {
"type": "Identifier",
"name": "fltIds",
"range": [
2015-08-05 09:31:12 +02:00
649,
655
],
"loc": {
"start": {
"line": 28,
"column": 26
},
"end": {
"line": 28,
"column": 32
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
646,
655
],
"loc": {
"start": {
"line": 28,
"column": 23
},
"end": {
"line": 28,
"column": 32
}
}
},
"property": {
"type": "Identifier",
"name": "length",
"range": [
2015-08-05 09:31:12 +02:00
656,
662
],
"loc": {
"start": {
"line": 28,
"column": 33
},
"end": {
"line": 28,
"column": 39
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
646,
662
],
"loc": {
"start": {
"line": 28,
"column": 23
},
"end": {
"line": 28,
"column": 39
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
644,
662
],
"loc": {
"start": {
"line": 28,
"column": 21
},
"end": {
"line": 28,
"column": 39
}
}
},
"update": {
"type": "UpdateExpression",
"operator": "++",
"argument": {
"type": "Identifier",
"name": "i",
"range": [
2015-08-05 09:31:12 +02:00
664,
665
],
"loc": {
"start": {
"line": 28,
"column": 41
},
"end": {
"line": 28,
"column": 42
}
}
},
"prefix": false,
"range": [
2015-08-05 09:31:12 +02:00
664,
667
],
"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-05 09:31:12 +02:00
686,
691
],
"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-05 09:31:12 +02:00
694,
696
],
"loc": {
"start": {
"line": 29,
"column": 24
},
"end": {
"line": 29,
"column": 26
}
}
},
"property": {
"type": "Identifier",
"name": "getFilterValue",
"range": [
2015-08-05 09:31:12 +02:00
697,
711
],
"loc": {
"start": {
"line": 29,
"column": 27
},
"end": {
"line": 29,
"column": 41
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
694,
711
],
"loc": {
"start": {
"line": 29,
"column": 24
},
"end": {
"line": 29,
"column": 41
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "i",
"range": [
2015-08-05 09:31:12 +02:00
712,
713
],
"loc": {
"start": {
"line": 29,
"column": 42
},
"end": {
"line": 29,
"column": 43
}
}
}
],
"range": [
2015-08-05 09:31:12 +02:00
694,
714
],
"loc": {
"start": {
"line": 29,
"column": 24
},
"end": {
"line": 29,
"column": 44
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
686,
714
],
"loc": {
"start": {
"line": 29,
"column": 16
},
"end": {
"line": 29,
"column": 44
}
}
}
],
"kind": "var",
"range": [
2015-08-05 09:31:12 +02:00
682,
715
],
"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-05 09:31:12 +02:00
732,
737
],
"loc": {
"start": {
"line": 30,
"column": 16
},
"end": {
"line": 30,
"column": 21
}
}
},
"right": {
"type": "Literal",
"value": "",
"raw": "''",
"range": [
2015-08-05 09:31:12 +02:00
742,
744
],
"loc": {
"start": {
"line": 30,
"column": 26
},
"end": {
"line": 30,
"column": 28
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
732,
744
],
"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-05 09:31:12 +02:00
763,
768
],
"loc": {
"start": {
"line": 31,
"column": 16
},
"end": {
"line": 31,
"column": 21
}
}
},
"right": {
"type": "Literal",
"value": " ",
"raw": "' '",
"range": [
2015-08-05 09:31:12 +02:00
771,
774
],
"loc": {
"start": {
"line": 31,
"column": 24
},
"end": {
"line": 31,
"column": 27
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
763,
774
],
"loc": {
"start": {
"line": 31,
"column": 16
},
"end": {
"line": 31,
"column": 27
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
763,
775
],
"loc": {
"start": {
"line": 31,
"column": 16
},
"end": {
"line": 31,
"column": 28
}
}
}
],
"range": [
2015-08-05 09:31:12 +02:00
745,
789
],
"loc": {
"start": {
"line": 30,
"column": 29
},
"end": {
"line": 32,
"column": 13
}
}
},
"alternate": null,
"range": [
2015-08-05 09:31:12 +02:00
728,
789
],
"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-05 09:31:12 +02:00
802,
811
],
"loc": {
"start": {
"line": 33,
"column": 12
},
"end": {
"line": 33,
"column": 21
}
}
},
"property": {
"type": "Identifier",
"name": "push",
"range": [
2015-08-05 09:31:12 +02:00
812,
816
],
"loc": {
"start": {
"line": 33,
"column": 22
},
"end": {
"line": 33,
"column": 26
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
802,
816
],
"loc": {
"start": {
"line": 33,
"column": 12
},
"end": {
"line": 33,
"column": 26
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "value",
"range": [
2015-08-05 09:31:12 +02:00
817,
822
],
"loc": {
"start": {
"line": 33,
"column": 27
},
"end": {
"line": 33,
"column": 32
}
}
}
],
"range": [
2015-08-05 09:31:12 +02:00
802,
823
],
"loc": {
"start": {
"line": 33,
"column": 12
},
"end": {
"line": 33,
"column": 33
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
802,
824
],
"loc": {
"start": {
"line": 33,
"column": 12
},
"end": {
"line": 33,
"column": 34
}
}
}
],
"range": [
2015-08-05 09:31:12 +02:00
668,
834
],
"loc": {
"start": {
"line": 28,
"column": 45
},
"end": {
"line": 34,
"column": 9
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
631,
834
],
"loc": {
"start": {
"line": 28,
"column": 8
},
"end": {
"line": 34,
"column": 9
}
},
"leadingComments": [
{
"type": "Line",
"value": "store filters' values",
"range": [
2015-08-05 09:31:12 +02:00
599,
622
],
"loc": {
"start": {
"line": 27,
"column": 8
},
"end": {
"line": 27,
"column": 31
}
}
}
],
"trailingComments": [
{
"type": "Line",
"value": "adds array size",
"range": [
2015-08-05 09:31:12 +02:00
843,
860
],
"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-05 09:31:12 +02:00
869,
878
],
"loc": {
"start": {
"line": 36,
"column": 8
},
"end": {
"line": 36,
"column": 17
}
}
},
"property": {
"type": "Identifier",
"name": "push",
"range": [
2015-08-05 09:31:12 +02:00
879,
883
],
"loc": {
"start": {
"line": 36,
"column": 18
},
"end": {
"line": 36,
"column": 22
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
869,
883
],
"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-05 09:31:12 +02:00
884,
886
],
"loc": {
"start": {
"line": 36,
"column": 23
},
"end": {
"line": 36,
"column": 25
}
}
},
"property": {
"type": "Identifier",
"name": "fltIds",
"range": [
2015-08-05 09:31:12 +02:00
887,
893
],
"loc": {
"start": {
"line": 36,
"column": 26
},
"end": {
"line": 36,
"column": 32
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
884,
893
],
"loc": {
"start": {
"line": 36,
"column": 23
},
"end": {
"line": 36,
"column": 32
}
}
},
"property": {
"type": "Identifier",
"name": "length",
"range": [
2015-08-05 09:31:12 +02:00
894,
900
],
"loc": {
"start": {
"line": 36,
"column": 33
},
"end": {
"line": 36,
"column": 39
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
884,
900
],
"loc": {
"start": {
"line": 36,
"column": 23
},
"end": {
"line": 36,
"column": 39
}
}
}
],
"range": [
2015-08-05 09:31:12 +02:00
869,
901
],
"loc": {
"start": {
"line": 36,
"column": 8
},
"end": {
"line": 36,
"column": 40
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
869,
902
],
"loc": {
"start": {
"line": 36,
"column": 8
},
"end": {
"line": 36,
"column": 41
}
},
"leadingComments": [
{
"type": "Line",
"value": "adds array size",
"range": [
2015-08-05 09:31:12 +02:00
843,
860
],
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 25
}
}
}
],
"trailingComments": [
{
"type": "Line",
"value": "writes cookie",
"range": [
2015-08-05 09:31:12 +02:00
912,
927
],
"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-05 09:31:12 +02:00
936,
942
],
"loc": {
"start": {
"line": 39,
"column": 8
},
"end": {
"line": 39,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"name": "write",
"range": [
2015-08-05 09:31:12 +02:00
943,
948
],
"loc": {
"start": {
"line": 39,
"column": 15
},
"end": {
"line": 39,
"column": 20
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
936,
948
],
"loc": {
"start": {
"line": 39,
"column": 8
},
"end": {
"line": 39,
"column": 20
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "name",
"range": [
2015-08-05 09:31:12 +02:00
962,
966
],
"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-05 09:31:12 +02:00
980,
989
],
"loc": {
"start": {
"line": 41,
"column": 12
},
"end": {
"line": 41,
"column": 21
}
}
},
"property": {
"type": "Identifier",
"name": "join",
"range": [
2015-08-05 09:31:12 +02:00
990,
994
],
"loc": {
"start": {
"line": 41,
"column": 22
},
"end": {
"line": 41,
"column": 26
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
980,
994
],
"loc": {
"start": {
"line": 41,
"column": 12
},
"end": {
"line": 41,
"column": 26
}
}
},
"arguments": [
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "tf",
"range": [
2015-08-05 09:31:12 +02:00
995,
997
],
"loc": {
"start": {
"line": 41,
"column": 27
},
"end": {
"line": 41,
"column": 29
}
}
},
"property": {
"type": "Identifier",
"name": "separator",
"range": [
2015-08-05 09:31:12 +02:00
998,
1007
],
"loc": {
"start": {
"line": 41,
"column": 30
},
"end": {
"line": 41,
"column": 39
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
995,
1007
],
"loc": {
"start": {
"line": 41,
"column": 27
},
"end": {
"line": 41,
"column": 39
}
}
}
],
"range": [
2015-08-05 09:31:12 +02:00
980,
1008
],
"loc": {
"start": {
"line": 41,
"column": 12
},
"end": {
"line": 41,
"column": 40
}
}
},
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
2015-08-05 09:31:12 +02:00
1022,
1026
],
"loc": {
"start": {
"line": 42,
"column": 12
},
"end": {
"line": 42,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "duration",
"range": [
2015-08-05 09:31:12 +02:00
1027,
1035
],
"loc": {
"start": {
"line": 42,
"column": 17
},
"end": {
"line": 42,
"column": 25
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
1022,
1035
],
"loc": {
"start": {
"line": 42,
"column": 12
},
"end": {
"line": 42,
"column": 25
}
}
}
],
"range": [
2015-08-05 09:31:12 +02:00
936,
1045
],
"loc": {
"start": {
"line": 39,
"column": 8
},
"end": {
"line": 43,
"column": 9
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
936,
1046
],
"loc": {
"start": {
"line": 39,
"column": 8
},
"end": {
"line": 43,
"column": 10
}
},
"leadingComments": [
{
"type": "Line",
"value": "writes cookie",
"range": [
2015-08-05 09:31:12 +02:00
912,
927
],
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 38,
"column": 23
}
}
}
]
}
],
"range": [
2015-08-05 09:31:12 +02:00
535,
1052
],
"loc": {
"start": {
"line": 24,
"column": 26
},
"end": {
"line": 44,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
2015-08-05 09:31:12 +02:00
529,
1052
],
"loc": {
"start": {
"line": 24,
"column": 20
},
"end": {
"line": 44,
"column": 5
}
}
},
"kind": "method",
"computed": false,
"range": [
2015-08-05 09:31:12 +02:00
513,
1052
],
"loc": {
"start": {
"line": 24,
"column": 4
},
"end": {
"line": 44,
"column": 5
}
},
"leadingComments": [
{
"type": "Block",
2015-08-05 09:31:12 +02:00
"value": "*\n * Store filters' values in cookie\n * @param {String} cookie name\n ",
"range": [
2015-08-05 09:31:12 +02:00
423,
508
],
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 23,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "Block",
2015-08-05 09:31:12 +02:00
"value": "*\n * Retrieve filters' values from cookie\n * @param {String} cookie name\n * @return {Array}\n ",
"range": [
2015-08-05 09:31:12 +02:00
1058,
1171
],
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 50,
"column": 7
}
}
}
],
"static": false
},
{
"type": "MethodDefinition",
"key": {
"type": "Identifier",
"name": "getFilterValues",
"range": [
2015-08-05 09:31:12 +02:00
1176,
1191
],
"loc": {
"start": {
"line": 51,
"column": 4
},
"end": {
"line": 51,
"column": 19
}
}
},
"value": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "name",
"range": [
2015-08-05 09:31:12 +02:00
1192,
1196
],
"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-05 09:31:12 +02:00
1211,
1215
],
"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-05 09:31:12 +02:00
1218,
1224
],
"loc": {
"start": {
"line": 52,
"column": 19
},
"end": {
"line": 52,
"column": 25
}
}
},
"property": {
"type": "Identifier",
"name": "read",
"range": [
2015-08-05 09:31:12 +02:00
1225,
1229
],
"loc": {
"start": {
"line": 52,
"column": 26
},
"end": {
"line": 52,
"column": 30
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
1218,
1229
],
"loc": {
"start": {
"line": 52,
"column": 19
},
"end": {
"line": 52,
"column": 30
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "name",
"range": [
2015-08-05 09:31:12 +02:00
1230,
1234
],
"loc": {
"start": {
"line": 52,
"column": 31
},
"end": {
"line": 52,
"column": 35
}
}
}
],
"range": [
2015-08-05 09:31:12 +02:00
1218,
1235
],
"loc": {
"start": {
"line": 52,
"column": 19
},
"end": {
"line": 52,
"column": 36
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
1211,
1235
],
"loc": {
"start": {
"line": 52,
"column": 12
},
"end": {
"line": 52,
"column": 36
}
}
}
],
"kind": "var",
"range": [
2015-08-05 09:31:12 +02:00
1207,
1236
],
"loc": {
"start": {
"line": 52,
"column": 8
},
"end": {
"line": 52,
"column": 37
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "rgx",
"range": [
2015-08-05 09:31:12 +02:00
1249,
1252
],
"loc": {
"start": {
"line": 53,
"column": 12
},
"end": {
"line": 53,
"column": 15
}
}
},
"init": {
"type": "NewExpression",
"callee": {
"type": "Identifier",
"name": "RegExp",
"range": [
2015-08-05 09:31:12 +02:00
1259,
1265
],
"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-05 09:31:12 +02:00
1266,
1270
],
"loc": {
"start": {
"line": 53,
"column": 29
},
"end": {
"line": 53,
"column": 33
}
}
},
"property": {
"type": "Identifier",
"name": "tf",
"range": [
2015-08-05 09:31:12 +02:00
1271,
1273
],
"loc": {
"start": {
"line": 53,
"column": 34
},
"end": {
"line": 53,
"column": 36
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
1266,
1273
],
"loc": {
"start": {
"line": 53,
"column": 29
},
"end": {
"line": 53,
"column": 36
}
}
},
"property": {
"type": "Identifier",
"name": "separator",
"range": [
2015-08-05 09:31:12 +02:00
1274,
1283
],
"loc": {
"start": {
"line": 53,
"column": 37
},
"end": {
"line": 53,
"column": 46
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
1266,
1283
],
"loc": {
"start": {
"line": 53,
"column": 29
},
"end": {
"line": 53,
"column": 46
}
}
},
{
"type": "Literal",
"value": "g",
"raw": "'g'",
"range": [
2015-08-05 09:31:12 +02:00
1285,
1288
],
"loc": {
"start": {
"line": 53,
"column": 48
},
"end": {
"line": 53,
"column": 51
}
}
}
],
"range": [
2015-08-05 09:31:12 +02:00
1255,
1289
],
"loc": {
"start": {
"line": 53,
"column": 18
},
"end": {
"line": 53,
"column": 52
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
1249,
1289
],
"loc": {
"start": {
"line": 53,
"column": 12
},
"end": {
"line": 53,
"column": 52
}
}
}
],
"kind": "var",
"range": [
2015-08-05 09:31:12 +02:00
1245,
1290
],
"loc": {
"start": {
"line": 53,
"column": 8
},
"end": {
"line": 53,
"column": 53
}
},
"trailingComments": [
{
"type": "Line",
"value": " filters' values array",
"range": [
2015-08-05 09:31:12 +02:00
1299,
1323
],
"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-05 09:31:12 +02:00
1339,
1343
],
"loc": {
"start": {
"line": 55,
"column": 15
},
"end": {
"line": 55,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"name": "split",
"range": [
2015-08-05 09:31:12 +02:00
1344,
1349
],
"loc": {
"start": {
"line": 55,
"column": 20
},
"end": {
"line": 55,
"column": 25
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
1339,
1349
],
"loc": {
"start": {
"line": 55,
"column": 15
},
"end": {
"line": 55,
"column": 25
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "rgx",
"range": [
2015-08-05 09:31:12 +02:00
1350,
1353
],
"loc": {
"start": {
"line": 55,
"column": 26
},
"end": {
"line": 55,
"column": 29
}
}
}
],
"range": [
2015-08-05 09:31:12 +02:00
1339,
1354
],
"loc": {
"start": {
"line": 55,
"column": 15
},
"end": {
"line": 55,
"column": 30
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
1332,
1355
],
"loc": {
"start": {
"line": 55,
"column": 8
},
"end": {
"line": 55,
"column": 31
}
},
"leadingComments": [
{
"type": "Line",
"value": " filters' values array",
"range": [
2015-08-05 09:31:12 +02:00
1299,
1323
],
"loc": {
"start": {
"line": 54,
"column": 8
},
"end": {
"line": 54,
"column": 32
}
}
}
]
}
],
"range": [
2015-08-05 09:31:12 +02:00
1197,
1361
],
"loc": {
"start": {
"line": 51,
"column": 25
},
"end": {
"line": 56,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
2015-08-05 09:31:12 +02:00
1191,
1361
],
"loc": {
"start": {
"line": 51,
"column": 19
},
"end": {
"line": 56,
"column": 5
}
}
},
"kind": "method",
"computed": false,
"range": [
2015-08-05 09:31:12 +02:00
1176,
1361
],
"loc": {
"start": {
"line": 51,
"column": 4
},
"end": {
"line": 56,
"column": 5
}
},
"leadingComments": [
{
"type": "Block",
2015-08-05 09:31:12 +02:00
"value": "*\n * Retrieve filters' values from cookie\n * @param {String} cookie name\n * @return {Array}\n ",
"range": [
2015-08-05 09:31:12 +02:00
1058,
1171
],
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 50,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "Block",
2015-08-05 09:31:12 +02:00
"value": "*\n * Store page number in cookie\n * @param {String} cookie name\n ",
"range": [
2015-08-05 09:31:12 +02:00
1367,
1448
],
"loc": {
"start": {
"line": 58,
"column": 4
},
"end": {
"line": 61,
"column": 7
}
}
}
],
"static": false
},
{
"type": "MethodDefinition",
"key": {
"type": "Identifier",
"name": "savePageNb",
"range": [
2015-08-05 09:31:12 +02:00
1453,
1463
],
"loc": {
"start": {
"line": 62,
"column": 4
},
"end": {
"line": 62,
"column": 14
}
}
},
"value": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "name",
"range": [
2015-08-05 09:31:12 +02:00
1464,
1468
],
"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-05 09:31:12 +02:00
1479,
1485
],
"loc": {
"start": {
"line": 63,
"column": 8
},
"end": {
"line": 63,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"name": "write",
"range": [
2015-08-05 09:31:12 +02:00
1486,
1491
],
"loc": {
"start": {
"line": 63,
"column": 15
},
"end": {
"line": 63,
"column": 20
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
1479,
1491
],
"loc": {
"start": {
"line": 63,
"column": 8
},
"end": {
"line": 63,
"column": 20
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "name",
"range": [
2015-08-05 09:31:12 +02:00
1505,
1509
],
"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-05 09:31:12 +02:00
1523,
1527
],
"loc": {
"start": {
"line": 65,
"column": 12
},
"end": {
"line": 65,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "tf",
"range": [
2015-08-05 09:31:12 +02:00
1528,
1530
],
"loc": {
"start": {
"line": 65,
"column": 17
},
"end": {
"line": 65,
"column": 19
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
1523,
1530
],
"loc": {
"start": {
"line": 65,
"column": 12
},
"end": {
"line": 65,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"name": "feature",
"range": [
2015-08-05 09:31:12 +02:00
1531,
1538
],
"loc": {
"start": {
"line": 65,
"column": 20
},
"end": {
"line": 65,
"column": 27
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
1523,
1538
],
"loc": {
"start": {
"line": 65,
"column": 12
},
"end": {
"line": 65,
"column": 27
}
}
},
"arguments": [
{
"type": "Literal",
"value": "paging",
"raw": "'paging'",
"range": [
2015-08-05 09:31:12 +02:00
1539,
1547
],
"loc": {
"start": {
"line": 65,
"column": 28
},
"end": {
"line": 65,
"column": 36
}
}
}
],
"range": [
2015-08-05 09:31:12 +02:00
1523,
1548
],
"loc": {
"start": {
"line": 65,
"column": 12
},
"end": {
"line": 65,
"column": 37
}
}
},
"property": {
"type": "Identifier",
"name": "currentPageNb",
"range": [
2015-08-05 09:31:12 +02:00
1549,
1562
],
"loc": {
"start": {
"line": 65,
"column": 38
},
"end": {
"line": 65,
"column": 51
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
1523,
1562
],
"loc": {
"start": {
"line": 65,
"column": 12
},
"end": {
"line": 65,
"column": 51
}
}
},
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
2015-08-05 09:31:12 +02:00
1576,
1580
],
"loc": {
"start": {
"line": 66,
"column": 12
},
"end": {
"line": 66,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "duration",
"range": [
2015-08-05 09:31:12 +02:00
1581,
1589
],
"loc": {
"start": {
"line": 66,
"column": 17
},
"end": {
"line": 66,
"column": 25
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
1576,
1589
],
"loc": {
"start": {
"line": 66,
"column": 12
},
"end": {
"line": 66,
"column": 25
}
}
}
],
"range": [
2015-08-05 09:31:12 +02:00
1479,
1599
],
"loc": {
"start": {
"line": 63,
"column": 8
},
"end": {
"line": 67,
"column": 9
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
1479,
1600
],
"loc": {
"start": {
"line": 63,
"column": 8
},
"end": {
"line": 67,
"column": 10
}
}
}
],
"range": [
2015-08-05 09:31:12 +02:00
1469,
1606
],
"loc": {
"start": {
"line": 62,
"column": 20
},
"end": {
"line": 68,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
2015-08-05 09:31:12 +02:00
1463,
1606
],
"loc": {
"start": {
"line": 62,
"column": 14
},
"end": {
"line": 68,
"column": 5
}
}
},
"kind": "method",
"computed": false,
"range": [
2015-08-05 09:31:12 +02:00
1453,
1606
],
"loc": {
"start": {
"line": 62,
"column": 4
},
"end": {
"line": 68,
"column": 5
}
},
"leadingComments": [
{
"type": "Block",
2015-08-05 09:31:12 +02:00
"value": "*\n * Store page number in cookie\n * @param {String} cookie name\n ",
"range": [
2015-08-05 09:31:12 +02:00
1367,
1448
],
"loc": {
"start": {
"line": 58,
"column": 4
},
"end": {
"line": 61,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "Block",
2015-08-05 09:31:12 +02:00
"value": "*\n * Retrieve page number from cookie\n * @param {String} cookie name\n * @return {String}\n ",
"range": [
2015-08-05 09:31:12 +02:00
1612,
1722
],
"loc": {
"start": {
"line": 70,
"column": 4
},
"end": {
"line": 74,
"column": 7
}
}
}
],
"static": false
},
{
"type": "MethodDefinition",
"key": {
"type": "Identifier",
"name": "getPageNb",
"range": [
2015-08-05 09:31:12 +02:00
1727,
1736
],
"loc": {
"start": {
"line": 75,
"column": 4
},
"end": {
"line": 75,
"column": 13
}
}
},
"value": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "name",
"range": [
2015-08-05 09:31:12 +02:00
1737,
1741
],
"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-05 09:31:12 +02:00
1759,
1765
],
"loc": {
"start": {
"line": 76,
"column": 15
},
"end": {
"line": 76,
"column": 21
}
}
},
"property": {
"type": "Identifier",
"name": "read",
"range": [
2015-08-05 09:31:12 +02:00
1766,
1770
],
"loc": {
"start": {
"line": 76,
"column": 22
},
"end": {
"line": 76,
"column": 26
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
1759,
1770
],
"loc": {
"start": {
"line": 76,
"column": 15
},
"end": {
"line": 76,
"column": 26
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "name",
"range": [
2015-08-05 09:31:12 +02:00
1771,
1775
],
"loc": {
"start": {
"line": 76,
"column": 27
},
"end": {
"line": 76,
"column": 31
}
}
}
],
"range": [
2015-08-05 09:31:12 +02:00
1759,
1776
],
"loc": {
"start": {
"line": 76,
"column": 15
},
"end": {
"line": 76,
"column": 32
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
1752,
1777
],
"loc": {
"start": {
"line": 76,
"column": 8
},
"end": {
"line": 76,
"column": 33
}
}
}
],
"range": [
2015-08-05 09:31:12 +02:00
1742,
1783
],
"loc": {
"start": {
"line": 75,
"column": 19
},
"end": {
"line": 77,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
2015-08-05 09:31:12 +02:00
1736,
1783
],
"loc": {
"start": {
"line": 75,
"column": 13
},
"end": {
"line": 77,
"column": 5
}
}
},
"kind": "method",
"computed": false,
"range": [
2015-08-05 09:31:12 +02:00
1727,
1783
],
"loc": {
"start": {
"line": 75,
"column": 4
},
"end": {
"line": 77,
"column": 5
}
},
"leadingComments": [
{
"type": "Block",
2015-08-05 09:31:12 +02:00
"value": "*\n * Retrieve page number from cookie\n * @param {String} cookie name\n * @return {String}\n ",
"range": [
2015-08-05 09:31:12 +02:00
1612,
1722
],
"loc": {
"start": {
"line": 70,
"column": 4
},
"end": {
"line": 74,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "Block",
2015-08-05 09:31:12 +02:00
"value": "*\n * Store page length in cookie\n * @param {String} cookie name\n ",
"range": [
2015-08-05 09:31:12 +02:00
1789,
1870
],
"loc": {
"start": {
"line": 79,
"column": 4
},
"end": {
"line": 82,
"column": 7
}
}
}
],
"static": false
},
{
"type": "MethodDefinition",
"key": {
"type": "Identifier",
"name": "savePageLength",
"range": [
2015-08-05 09:31:12 +02:00
1875,
1889
],
"loc": {
"start": {
"line": 83,
"column": 4
},
"end": {
"line": 83,
"column": 18
}
}
},
"value": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "name",
"range": [
2015-08-05 09:31:12 +02:00
1890,
1894
],
"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-05 09:31:12 +02:00
1905,
1911
],
"loc": {
"start": {
"line": 84,
"column": 8
},
"end": {
"line": 84,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"name": "write",
"range": [
2015-08-05 09:31:12 +02:00
1912,
1917
],
"loc": {
"start": {
"line": 84,
"column": 15
},
"end": {
"line": 84,
"column": 20
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
1905,
1917
],
"loc": {
"start": {
"line": 84,
"column": 8
},
"end": {
"line": 84,
"column": 20
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "name",
"range": [
2015-08-05 09:31:12 +02:00
1931,
1935
],
"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-05 09:31:12 +02:00
1949,
1953
],
"loc": {
"start": {
"line": 86,
"column": 12
},
"end": {
"line": 86,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "tf",
"range": [
2015-08-05 09:31:12 +02:00
1954,
1956
],
"loc": {
"start": {
"line": 86,
"column": 17
},
"end": {
"line": 86,
"column": 19
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
1949,
1956
],
"loc": {
"start": {
"line": 86,
"column": 12
},
"end": {
"line": 86,
"column": 19
}
}
},
"property": {
"type": "Identifier",
"name": "feature",
"range": [
2015-08-05 09:31:12 +02:00
1957,
1964
],
"loc": {
"start": {
"line": 86,
"column": 20
},
"end": {
"line": 86,
"column": 27
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
1949,
1964
],
"loc": {
"start": {
"line": 86,
"column": 12
},
"end": {
"line": 86,
"column": 27
}
}
},
"arguments": [
{
"type": "Literal",
"value": "paging",
"raw": "'paging'",
"range": [
2015-08-05 09:31:12 +02:00
1965,
1973
],
"loc": {
"start": {
"line": 86,
"column": 28
},
"end": {
"line": 86,
"column": 36
}
}
}
],
"range": [
2015-08-05 09:31:12 +02:00
1949,
1974
],
"loc": {
"start": {
"line": 86,
"column": 12
},
"end": {
"line": 86,
"column": 37
}
}
},
"property": {
"type": "Identifier",
"name": "resultsPerPageSlc",
"range": [
2015-08-05 09:31:12 +02:00
1975,
1992
],
"loc": {
"start": {
"line": 86,
"column": 38
},
"end": {
"line": 86,
"column": 55
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
1949,
1992
],
"loc": {
"start": {
"line": 86,
"column": 12
},
"end": {
"line": 86,
"column": 55
}
}
},
"property": {
"type": "Identifier",
"name": "selectedIndex",
"range": [
2015-08-05 09:31:12 +02:00
1993,
2006
],
"loc": {
"start": {
"line": 86,
"column": 56
},
"end": {
"line": 86,
"column": 69
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
1949,
2006
],
"loc": {
"start": {
"line": 86,
"column": 12
},
"end": {
"line": 86,
"column": 69
}
}
},
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "ThisExpression",
"range": [
2015-08-05 09:31:12 +02:00
2020,
2024
],
"loc": {
"start": {
"line": 87,
"column": 12
},
"end": {
"line": 87,
"column": 16
}
}
},
"property": {
"type": "Identifier",
"name": "duration",
"range": [
2015-08-05 09:31:12 +02:00
2025,
2033
],
"loc": {
"start": {
"line": 87,
"column": 17
},
"end": {
"line": 87,
"column": 25
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
2020,
2033
],
"loc": {
"start": {
"line": 87,
"column": 12
},
"end": {
"line": 87,
"column": 25
}
}
}
],
"range": [
2015-08-05 09:31:12 +02:00
1905,
2043
],
"loc": {
"start": {
"line": 84,
"column": 8
},
"end": {
"line": 88,
"column": 9
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
1905,
2044
],
"loc": {
"start": {
"line": 84,
"column": 8
},
"end": {
"line": 88,
"column": 10
}
}
}
],
"range": [
2015-08-05 09:31:12 +02:00
1895,
2050
],
"loc": {
"start": {
"line": 83,
"column": 24
},
"end": {
"line": 89,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
2015-08-05 09:31:12 +02:00
1889,
2050
],
"loc": {
"start": {
"line": 83,
"column": 18
},
"end": {
"line": 89,
"column": 5
}
}
},
"kind": "method",
"computed": false,
"range": [
2015-08-05 09:31:12 +02:00
1875,
2050
],
"loc": {
"start": {
"line": 83,
"column": 4
},
"end": {
"line": 89,
"column": 5
}
},
"leadingComments": [
{
"type": "Block",
2015-08-05 09:31:12 +02:00
"value": "*\n * Store page length in cookie\n * @param {String} cookie name\n ",
"range": [
2015-08-05 09:31:12 +02:00
1789,
1870
],
"loc": {
"start": {
"line": 79,
"column": 4
},
"end": {
"line": 82,
"column": 7
}
}
}
],
"trailingComments": [
{
"type": "Block",
2015-08-05 09:31:12 +02:00
"value": "*\n * Retrieve page length from cookie\n * @param {String} cookie name\n * @return {String}\n ",
"range": [
2015-08-05 09:31:12 +02:00
2056,
2166
],
"loc": {
"start": {
"line": 91,
"column": 4
},
"end": {
"line": 95,
"column": 7
}
}
}
],
"static": false
},
{
"type": "MethodDefinition",
"key": {
"type": "Identifier",
"name": "getPageLength",
"range": [
2015-08-05 09:31:12 +02:00
2171,
2184
],
"loc": {
"start": {
"line": 96,
"column": 4
},
"end": {
"line": 96,
"column": 17
}
}
},
"value": {
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "name",
"range": [
2015-08-05 09:31:12 +02:00
2185,
2189
],
"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-05 09:31:12 +02:00
2207,
2213
],
"loc": {
"start": {
"line": 97,
"column": 15
},
"end": {
"line": 97,
"column": 21
}
}
},
"property": {
"type": "Identifier",
"name": "read",
"range": [
2015-08-05 09:31:12 +02:00
2214,
2218
],
"loc": {
"start": {
"line": 97,
"column": 22
},
"end": {
"line": 97,
"column": 26
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
2207,
2218
],
"loc": {
"start": {
"line": 97,
"column": 15
},
"end": {
"line": 97,
"column": 26
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "name",
"range": [
2015-08-05 09:31:12 +02:00
2219,
2223
],
"loc": {
"start": {
"line": 97,
"column": 27
},
"end": {
"line": 97,
"column": 31
}
}
}
],
"range": [
2015-08-05 09:31:12 +02:00
2207,
2224
],
"loc": {
"start": {
"line": 97,
"column": 15
},
"end": {
"line": 97,
"column": 32
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
2200,
2225
],
"loc": {
"start": {
"line": 97,
"column": 8
},
"end": {
"line": 97,
"column": 33
}
}
}
],
"range": [
2015-08-05 09:31:12 +02:00
2190,
2231
],
"loc": {
"start": {
"line": 96,
"column": 23
},
"end": {
"line": 98,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
2015-08-05 09:31:12 +02:00
2184,
2231
],
"loc": {
"start": {
"line": 96,
"column": 17
},
"end": {
"line": 98,
"column": 5
}
}
},
"kind": "method",
"computed": false,
"range": [
2015-08-05 09:31:12 +02:00
2171,
2231
],
"loc": {
"start": {
"line": 96,
"column": 4
},
"end": {
"line": 98,
"column": 5
}
},
"leadingComments": [
{
"type": "Block",
2015-08-05 09:31:12 +02:00
"value": "*\n * Retrieve page length from cookie\n * @param {String} cookie name\n * @return {String}\n ",
"range": [
2015-08-05 09:31:12 +02:00
2056,
2166
],
"loc": {
"start": {
"line": 91,
"column": 4
},
"end": {
"line": 95,
"column": 7
}
}
}
],
"static": false
}
],
"range": [
2015-08-05 09:31:12 +02:00
51,
2234
],
"loc": {
"start": {
"line": 3,
"column": 18
},
"end": {
"line": 100,
"column": 1
}
}
},
"range": [
2015-08-05 09:31:12 +02:00
40,
2234
],
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 100,
"column": 1
}
},
"leadingComments": [],
"trailingComments": []
},
"specifiers": [],
"source": null,
"range": [
2015-08-05 09:31:12 +02:00
33,
2234
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 100,
"column": 1
}
}
}
],
"sourceType": "module",
"range": [
0,
2015-08-05 09:31:12 +02:00
2234
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 100,
"column": 1
}
},
"comments": [
{
"type": "Block",
2015-08-05 09:31:12 +02:00
"value": "*\n * Store, persistence manager\n * @param {Object} tf TableFilter instance\n *\n * TODO: use localStorage and fallback to cookie persistence\n ",
"range": [
2015-08-05 09:31:12 +02:00
58,
222
],
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 10,
"column": 7
}
}
},
{
"type": "Block",
2015-08-05 09:31:12 +02:00
"value": "*\n * Store filters' values in cookie\n * @param {String} cookie name\n ",
"range": [
2015-08-05 09:31:12 +02:00
423,
508
],
"loc": {
"start": {
"line": 20,
"column": 4
},
"end": {
"line": 23,
"column": 7
}
}
},
{
"type": "Line",
"value": "store filters' values",
"range": [
2015-08-05 09:31:12 +02:00
599,
622
],
"loc": {
"start": {
"line": 27,
"column": 8
},
"end": {
"line": 27,
"column": 31
}
}
},
{
"type": "Line",
"value": "adds array size",
"range": [
2015-08-05 09:31:12 +02:00
843,
860
],
"loc": {
"start": {
"line": 35,
"column": 8
},
"end": {
"line": 35,
"column": 25
}
}
},
{
"type": "Line",
"value": "writes cookie",
"range": [
2015-08-05 09:31:12 +02:00
912,
927
],
"loc": {
"start": {
"line": 38,
"column": 8
},
"end": {
"line": 38,
"column": 23
}
}
},
{
"type": "Block",
2015-08-05 09:31:12 +02:00
"value": "*\n * Retrieve filters' values from cookie\n * @param {String} cookie name\n * @return {Array}\n ",
"range": [
2015-08-05 09:31:12 +02:00
1058,
1171
],
"loc": {
"start": {
"line": 46,
"column": 4
},
"end": {
"line": 50,
"column": 7
}
}
},
{
"type": "Line",
"value": " filters' values array",
"range": [
2015-08-05 09:31:12 +02:00
1299,
1323
],
"loc": {
"start": {
"line": 54,
"column": 8
},
"end": {
"line": 54,
"column": 32
}
}
},
{
"type": "Block",
2015-08-05 09:31:12 +02:00
"value": "*\n * Store page number in cookie\n * @param {String} cookie name\n ",
"range": [
2015-08-05 09:31:12 +02:00
1367,
1448
],
"loc": {
"start": {
"line": 58,
"column": 4
},
"end": {
"line": 61,
"column": 7
}
}
},
{
"type": "Block",
2015-08-05 09:31:12 +02:00
"value": "*\n * Retrieve page number from cookie\n * @param {String} cookie name\n * @return {String}\n ",
"range": [
2015-08-05 09:31:12 +02:00
1612,
1722
],
"loc": {
"start": {
"line": 70,
"column": 4
},
"end": {
"line": 74,
"column": 7
}
}
},
{
"type": "Block",
2015-08-05 09:31:12 +02:00
"value": "*\n * Store page length in cookie\n * @param {String} cookie name\n ",
"range": [
2015-08-05 09:31:12 +02:00
1789,
1870
],
"loc": {
"start": {
"line": 79,
"column": 4
},
"end": {
"line": 82,
"column": 7
}
}
},
{
"type": "Block",
2015-08-05 09:31:12 +02:00
"value": "*\n * Retrieve page length from cookie\n * @param {String} cookie name\n * @return {String}\n ",
"range": [
2015-08-05 09:31:12 +02:00
2056,
2166
],
"loc": {
"start": {
"line": 91,
"column": 4
},
"end": {
"line": 95,
"column": 7
}
}
}
]
}