make worker events more consistent
This commit is contained in:
parent
e1a5492a7f
commit
264923e4df
12 changed files with 37 additions and 46 deletions
|
|
@ -143,11 +143,11 @@ oop.inherits(Mode, HtmlMode);
|
|||
if (this.inlinePhp)
|
||||
worker.call("setOptions", [{inline: true}]);
|
||||
|
||||
worker.on("error", function(e) {
|
||||
worker.on("annotate", function(e) {
|
||||
session.setAnnotations(e.data);
|
||||
});
|
||||
|
||||
worker.on("ok", function() {
|
||||
worker.on("terminate", function() {
|
||||
session.clearAnnotations();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue