Rev 974 | Rev 1042 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 974 | Rev 1036 | ||
|---|---|---|---|
| Line 18... | Line 18... | ||
| 18 | { |
18 | { |
| 19 | Interval.myIntervals[id].triggerCallback(); |
19 | Interval.myIntervals[id].triggerCallback(); |
| 20 | } |
20 | } |
| 21 | else |
21 | else |
| 22 | { |
22 | { |
| 23 | log("Interval:" + id + "> Encountered a thread that have no javascript Interval object. This is not supposed to be possible, |
23 | log("Interval:" + id + "> Encountered a thread that have no javascript Interval object. This is not supposed to be possible, will try to remove this thread also.\n"); |
| 24 | 24 | ||
| 25 | if (!stopIntervalThread(id)) |
25 | if (!stopIntervalThread(id)) |
| 26 | { |
26 | { |
| 27 | log("Interval:" + |
27 | log("Interval:" + this.myId + "> Interval thread seems to have already been stopped.\n"); |
| 28 | } |
28 | } |
| 29 | } |
29 | } |
| 30 | } |
30 | } |
| 31 | 31 | ||
| 32 | Interval.prototype.triggerCallback = function() |
32 | Interval.prototype.triggerCallback = function() |
| Line 71... | Line 71... | ||
| 71 | { |
71 | { |
| 72 | this.myIsRunning = false; |
72 | this.myIsRunning = false; |
| 73 | 73 | ||
| 74 | if (!stopIntervalThread(this.myId)) |
74 | if (!stopIntervalThread(this.myId)) |
| 75 | { |
75 | { |
| 76 | log("Interval:" + this.myId + "> Interval thread |
76 | log("Interval:" + this.myId + "> Interval thread seems to have already been stopped.\n"); |
| 77 | } |
77 | } |
| 78 | 78 | ||
| 79 | delete Interval.myIntervals[this.myId]; |
79 | delete Interval.myIntervals[this.myId]; |
| 80 | this.myId = null; |
80 | this.myId = null; |
| 81 | } |
81 | } |