Skip to content
Snippets Groups Projects
Commit fdb0f968 authored by Hermann's avatar Hermann
Browse files

fix rendering issues with jQuery and mithril

parent af10a98a
No related branches found
No related tags found
No related merge requests found
import renderAnnounce from 'announcetool';
import tool from 'announcetool';
const m = require('mithril');
export default class AnnounceTool {
oninit() {
console.log(renderAnnounce);
oncreate() {
if (tool.wasRenderedOnce()) {
// jQuery catches the first document.ready, but afterwards we have to
// trigger a render
tool.render();
}
}
view() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment