Clean up
This commit is contained in:
parent
dbc2f42399
commit
9c4e3142b1
@ -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 New Issue
Block a user