Showing 2 changed files with 3 additions and 2 deletions
+1 -1
Nasal/core.nas
... ...
@@ -81,7 +81,7 @@ var deviceClass = {
81 81
         var m = { parents: [ deviceClass ] };
82 82
         m.role = d ? 'MFD' : 'PFD';
83 83
         m.node = zkv.getNode('device[' ~ d ~ ']', 1);
84
-        m.display  = displayClass.new(m.node, m.role);
84
+        m.display  = displayClass.new(m, m.role);
85 85
         m.display.showInitProgress(m.role);
86 86
         m.buttons  = buttonsClass.new(m.node);
87 87
         m.knobs    = knobsClass.new(m.node);
+2 -1
Nasal/display.nas
... ...
@@ -1,6 +1,6 @@
1 1
 # vim: set foldmethod=marker foldmarker={{{,}}} :
2 2
 var displayClass = {
3
-    new: func(node, role) {
3
+    new: func(device, role) {
4 4
         var m = { parents: [ displayClass ] };
5 5
 
6 6
         m.display = canvas.new({
... ...
@@ -15,6 +15,7 @@ var displayClass = {
15 15
         });
16 16
         m.display.setColorBackground(0,0,0);
17 17
         m.role = role;
18
+        m.device = device;
18 19
         m.screenElements = {};
19 20
 
20 21
         return m;