Clean up
This commit is contained in:
parent
eb0daf53e6
commit
bbda46f5fb
2 changed files with 0 additions and 20 deletions
|
@ -1,15 +0,0 @@
|
||||||
import * as riot from 'riot';
|
|
||||||
|
|
||||||
export default opts => {
|
|
||||||
const app = document.getElementById('app');
|
|
||||||
app.style.display = 'none';
|
|
||||||
|
|
||||||
function recover() {
|
|
||||||
app.style.display = 'block';
|
|
||||||
}
|
|
||||||
|
|
||||||
const form = riot.mount(document.body.appendChild(document.createElement('mk-post-form')), opts)[0];
|
|
||||||
form
|
|
||||||
.on('cancel', recover)
|
|
||||||
.on('post', recover);
|
|
||||||
};
|
|
|
@ -1,5 +0,0 @@
|
||||||
import * as riot from 'riot';
|
|
||||||
|
|
||||||
const ev = riot.observable();
|
|
||||||
|
|
||||||
export default ev;
|
|
Loading…
Reference in a new issue