expose m to window
This commit is contained in:
parent
4b6c4254ba
commit
6ff63b224c
2 changed files with 6 additions and 4 deletions
3
index.js
3
index.js
|
|
@ -16,5 +16,6 @@
|
|||
m.render = renderService.render
|
||||
m.redraw = redrawService.publish
|
||||
|
||||
module.exports = m
|
||||
if (typeof module === "object") module.exports = m
|
||||
else window.m = m
|
||||
})()
|
||||
Loading…
Add table
Add a link
Reference in a new issue