Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(options: MarkdownCell.IOptions) {
super(options);
this.addClass(MARKDOWN_CELL_CLASS);
// Ensure we can resolve attachments:
this._rendermime = options.rendermime.clone({
resolver: new AttachmentsResolver({
parent: options.rendermime.resolver,
model: this.model.attachments
})
});
// Throttle the rendering rate of the widget.
this._monitor = new ActivityMonitor({
signal: this.model.contentChanged,
timeout: RENDER_TIMEOUT
});
this._monitor.activityStopped.connect(() => {
if (this._rendered) {
this.update();
}
}, this);
constructor(options: MarkdownCell.IOptions) {
super(options);
this.addClass(MARKDOWN_CELL_CLASS);
// Ensure we can resolve attachments:
this._rendermime = options.rendermime.clone({
resolver: new AttachmentsResolver({
parent: options.rendermime.resolver,
model: this.model.attachments
})
});
// Throttle the rendering rate of the widget.
this._monitor = new ActivityMonitor({
signal: this.model.contentChanged,
timeout: RENDER_TIMEOUT
});
this._monitor.activityStopped.connect(
() => {
if (this._rendered) {
this.update();
}
},
constructor(options: MarkdownCell.IOptions) {
super(options);
this.addClass(MARKDOWN_CELL_CLASS);
// Ensure we can resolve attachments:
this._rendermime = options.rendermime.clone({
resolver: new AttachmentsResolver({
parent: options.rendermime.resolver,
model: this.model.attachments
})
});
// Throttle the rendering rate of the widget.
this._monitor = new ActivityMonitor({
signal: this.model.contentChanged,
timeout: RENDER_TIMEOUT
});
this._monitor.activityStopped.connect(() => {
if (this._rendered) {
this.update();
}
}, this);