bind this to streamCmdQuery
This commit is contained in:
parent
4dea379673
commit
11bc2d7682
|
@ -36,7 +36,7 @@ function MonitorStream(monitorData) {
|
||||||
stream.src = '';
|
stream.src = '';
|
||||||
stream.src = src;
|
stream.src = src;
|
||||||
}
|
}
|
||||||
setTimeout(this.streamCmdQuery, delay, this);
|
setTimeout(this.streamCmdQuery.bind(this), delay);
|
||||||
};
|
};
|
||||||
this.stop = function() {
|
this.stop = function() {
|
||||||
if ( 0 ) {
|
if ( 0 ) {
|
||||||
|
@ -98,7 +98,7 @@ function MonitorStream(monitorData) {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.onFailure = function(jqxhr, textStatus, error) {
|
this.onFailure = function(jqxhr, textStatus, error) {
|
||||||
setTimeout(this.streamCmdQuery, 1000*statusRefreshTimeout, this);
|
setTimeout(this.streamCmdQuery.bind(this), 1000*statusRefreshTimeout);
|
||||||
logAjaxFail(jqxhr, textStatus, error);
|
logAjaxFail(jqxhr, textStatus, error);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -195,7 +195,7 @@ function MonitorStream(monitorData) {
|
||||||
} // end if Ok or not
|
} // end if Ok or not
|
||||||
|
|
||||||
this.lastAlarmState = this.alarmState;
|
this.lastAlarmState = this.alarmState;
|
||||||
setTimeout(this.streamCmdQuery, statusRefreshTimeout, this);
|
setTimeout(this.streamCmdQuery.bind(this), statusRefreshTimeout);
|
||||||
};
|
};
|
||||||
|
|
||||||
this.streamCmdQuery = function(resent) {
|
this.streamCmdQuery = function(resent) {
|
||||||
|
|
Loading…
Reference in New Issue