提交 e3cd2975 编写于 作者: B Boris Sekachev

Fixed JS syntax for Google Chrome < 72

上级 4fe7078d
......@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.4.1] - 2019-05-14
### Fixed
- JavaScript syntax incompatibility with Google Chrome versions less than 72
## [0.4.0] - 2019-05-04
### Added
- OpenVINO auto annotation: it is possible to upload a custom model and annotate images automatically.
......
......@@ -447,7 +447,7 @@ class DashboardView {
try {
LabelsInfo.deserialize(labels)
return true;
} catch {
} catch (error) {
return false;
}
}
......
......@@ -71,7 +71,7 @@ class LoggerHandler {
addContinuedEvent(event) {
this._userActivityHandler.updateTimer();
event.onCloseCallback = this._closeCallback;
event.onCloseCallback = this._closeCallback.bind(this);
return event;
}
......@@ -152,7 +152,9 @@ class LoggerHandler {
this._userActivityHandler.updateTimer();
}
_closeCallback = event => { this._pushEvent(event); };
_closeCallback(event) {
this._pushEvent(event);
}
updateTimer() {
this._userActivityHandler.updateTimer();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册