fix engine api example. add code download
This commit is contained in:
parent
c0ff5d7ac7
commit
2d9bc91973
3 changed files with 40 additions and 5 deletions
|
|
@ -7,6 +7,14 @@
|
|||
let KIRI = self.kiri = self.kiri || {};
|
||||
KIRI.newEngine = ()=> { return new Engine ()};
|
||||
|
||||
if (!KIRI.api) {
|
||||
KIRI.api = {
|
||||
event: {
|
||||
emit: () => {}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
class Engine {
|
||||
constructor() {
|
||||
this.widget = KIRI.newWidget();
|
||||
|
|
|
|||
Loading…
Reference in a new issue