Commit 8fedfd3e authored by Aron Carroll's avatar Aron Carroll

Extend the Annotator.Threading prototype

With the messageThread methods. This allows methods to be overridden
by the object itself.
parent 71af3388
class Annotator.Plugin.Threading extends Annotator.Plugin class Annotator.Plugin.Threading extends Annotator.Plugin
$.extend(this.prototype, mail.messageThread())
events: events:
'beforeAnnotationCreated': 'beforeAnnotationCreated' 'beforeAnnotationCreated': 'beforeAnnotationCreated'
'annotationDeleted': 'annotationDeleted' 'annotationDeleted': 'annotationDeleted'
...@@ -11,7 +13,7 @@ class Annotator.Plugin.Threading extends Annotator.Plugin ...@@ -11,7 +13,7 @@ class Annotator.Plugin.Threading extends Annotator.Plugin
@root = mail.messageContainer() @root = mail.messageContainer()
# Mix in message thread properties, preserving local overrides. # Mix in message thread properties, preserving local overrides.
$.extend(this, mail.messageThread(), thread: this.thread) $.extend(this, thread: this.thread)
# TODO: Refactor the jwz API for progressive updates. # TODO: Refactor the jwz API for progressive updates.
# Right now the idTable is wiped when `messageThread.thread()` is called and # Right now the idTable is wiped when `messageThread.thread()` is called and
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment