PageSourceSearch

https://talep.harran.edu.tr/ScriptResource.axd?d=iC2sD0Al8A6ZX4AVm…jJ0tkRpQ9ajbQRknCw6EhdqxhwpwBCb0&t=27679117

js harran.edu.tr collected 2026-09-24 20:02:58 UTC 2,297 bytes, 95 lines download raw bytes

1// Name:        Compat.Timer.debug.js
2// Assembly:    AjaxControlToolkit
3// Version:     17.1.1.0
4// FileVersion: 17.1.1.0
5Sys.Timer = function() {
6    Sys.Timer.initializeBase(this);
7
8    this._interval = 1000;
9    this._enabled = false;
10    this._timer = null;
11}
12
13Sys.Timer.prototype = {
14
15    get_interval: function() {
16
17        return this._interval;
18    },
19
20    set_interval: function(value) {
21        if(this._interval !== value) {
22            this._interval = value;
23            this.raisePropertyChanged('interval');
24
25            if(!this.get_isUpdating() && (this._timer !== null)) {
26                this._stopTimer();
27                this._startTimer();
28            }
29        }
30    },
31
32    get_enabled: function() {
33        return this._enabled;
34    },
35
36    set_enabled: function(value) {
37        if(value !== this.get_enabled()) {
38            this._enabled = value;
39            this.raisePropertyChanged('enabled');
40
41            if(!this.get_isUpdating())
42                if(value)
43                    this._startTimer();
44                else
45                    this._stopTimer();
46        }
47    },
48
49    add_tick: function(handler) {
50        this.get_events().addHandler("tick", handler);
51    },
52
53    remove_tick: function(handler) {
54        this.get_events().removeHandler("tick", handler);
55    },
56
57    dispose: function() {
58        this.set_enabled(false);
59        this._stopTimer();
60
61        Sys.Timer.callBaseMethod(this, 'dispose');
62    },
63
64    updated: function() {
65        Sys.Timer.callBaseMethod(this, 'updated');
66
67        if(this._enabled) {
68            this._stopTimer();
69            this._startTimer();
70        }
71    },
72
73    _timerCallback: function() {
74        var handler = this.get_events().getHandler("tick");
75        if(handler)
76            handler(this, Sys.EventArgs.Empty);
77    },
78
79    _startTimer: function() {
80        this._timer = window.setInterval(Function.createDelegate(this, this._timerCallback), this._interval);
81    },
82
83    _stopTimer: function() {
84        window.clearInterval(this._timer);
85        this._timer = null;
86    }
87}
88
89Sys.Timer.descriptor = {
90    properties: [{ name: 'interval', type: Number },
91                    { name: 'enabled', type: Boolean }],
92    events: [{ name: 'tick' }]
93}
94
95Sys.Timer.registerClass('Sys.Timer', Sys.Component);

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.