vibornoff: fix stopCollectors
This commit is contained in:
parent
117fce4fa2
commit
291414a86c
|
@ -193,8 +193,8 @@ sjcl.random = {
|
||||||
if (!this._collectorsStarted) { return; }
|
if (!this._collectorsStarted) { return; }
|
||||||
|
|
||||||
if (window.removeEventListener) {
|
if (window.removeEventListener) {
|
||||||
window.removeEventListener("load", this._loadTimeCollector);
|
window.removeEventListener("load", this._loadTimeCollector, false);
|
||||||
window.removeEventListener("mousemove", this._mouseCollector);
|
window.removeEventListener("mousemove", this._mouseCollector, false);
|
||||||
} else if (window.detachEvent) {
|
} else if (window.detachEvent) {
|
||||||
window.detachEvent("onload", this._loadTimeCollector);
|
window.detachEvent("onload", this._loadTimeCollector);
|
||||||
window.detachEvent("onmousemove", this._mouseCollector);
|
window.detachEvent("onmousemove", this._mouseCollector);
|
||||||
|
|
Loading…
Reference in New Issue