PageSourceSearch

https://xn--80akjfhmgn4l.market/scripts/_common/tabs/services/tabsService.js

js xn--80akjfhmgn4l.market collected 2026-10-09 21:30:01 UTC 1,046 bytes, 46 lines download raw bytes

1; (function (ng) {
2    'use strict';
3
4    var tabsService = function () {
5        var service = this,
6            countInStorage = -1,
7            storage = {};
8
9        service.addInStorage = function (tabs, id) {
10            storage[id || (countInStorage += + 1)] = tabs;
11        };
12
13        service.change = function (id) {
14            var data = service.findTabByid(id);
15
16            if (data != null) {
17                data.tabs.change(data.pane);
18            }
19        };
20
21        service.findTabByid = function (id) {
22
23            var tabs, pane;
24
25            for (var key in storage) {
26
27                if (pane != null) {
28                    break;
29                }
30
31                tabs = storage[key];
32
33                if (storage.hasOwnProperty(key)) {
34                    pane = tabs.panes[id];
35                    break;
36                }
37            }
38
39            return pane != null ? { tabs: tabs, pane: pane } : null;
40        };
41    };
42
43    ng.module('tabs')
44      .service('tabsService', tabsService);
45
46})(window.angular);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.