FIX: Use the register within the poll plugin

This commit is contained in:
Robin Ward
2016-11-25 11:57:51 -05:00
parent e3b47a3998
commit d8a69e6bb2
2 changed files with 6 additions and 6 deletions

View File

@@ -11,11 +11,11 @@ export function addDecorator(cb) {
export default class PostCooked {
constructor(attrs, getModel) {
constructor(attrs, decoratorHelper) {
this.attrs = attrs;
this.expanding = false;
this._highlighted = false;
this.getModel = getModel;
this.decoratorHelper = decoratorHelper;
}
update(prev) {
@@ -31,7 +31,7 @@ export default class PostCooked {
this._fixImageSizes($html);
this._applySearchHighlight($html);
_decorators.forEach(cb => cb($html, this.getModel));
_decorators.forEach(cb => cb($html, this.decoratorHelper));
return $html[0];
}