We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1333177 commit 0f1308aCopy full SHA for 0f1308a
3 files changed
homework-classes/Observer.js
homework-classes/View.js
@@ -1,11 +1,9 @@
1
'use strict';
2
3
{
4
- const { Observer } = window;
5
-
6
- class View extends Observer {
+ class View {
7
constructor(model, account) {
8
- super(model);
+ model.subscribe(this);
9
this.model = model;
10
this.header = null;
11
this.select = null;
homework-classes/index.html
@@ -22,7 +22,6 @@
22
<body>
23
<div id="root"></div>
24
<script src="./Observable.js"></script>
25
- <script src="./Observer.js"></script>
26
<script src="./Model.js"></script>
27
<script src="./View.js"></script>
28
<script src="./App.js"></script>
0 commit comments