mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-03 20:31:50 -05:00
18 lines
276 B
JavaScript
18 lines
276 B
JavaScript
export default class RawHtml {
|
|
constructor(attrs) {
|
|
this.html = attrs.html;
|
|
}
|
|
|
|
init() {
|
|
return $(this.html)[0];
|
|
}
|
|
|
|
update(prev) {
|
|
if (prev.html === this.html) { return; }
|
|
return this.init();
|
|
}
|
|
|
|
destroy() { }
|
|
}
|
|
|
|
RawHtml.prototype.type = 'Widget';
|