parent
c4996ef5d8
commit
24c7369451
12 changed files with 23 additions and 57 deletions
@ -1,16 +1,3 @@ |
|||||||
import CommonComponent from './common'; |
import CommonComponent from './common'; |
||||||
|
|
||||||
export default class FrameContent { |
export default CommonComponent; |
||||||
|
|
||||||
constructor(win, store) { |
|
||||||
this.children = [new CommonComponent(win, store)]; |
|
||||||
} |
|
||||||
|
|
||||||
update() { |
|
||||||
this.children.forEach(c => c.update()); |
|
||||||
} |
|
||||||
|
|
||||||
onMessage(message, sender) { |
|
||||||
this.children.forEach(c => c.onMessage(message, sender)); |
|
||||||
} |
|
||||||
} |
|
||||||
|
Reference in new issue