Fix runtime error - cruise page has no light so failed
This commit is contained in:
parent
c4ef0d1cff
commit
d41a5be22f
1 changed files with 2 additions and 0 deletions
|
@ -308,9 +308,11 @@ var ECAMControlPanel = {
|
|||
# todo
|
||||
},
|
||||
lightOff: func(pageLightOff) {
|
||||
if (pageLightOff == "crz") { return; }
|
||||
ECAM.lights[pageLightOff].setBoolValue(0);
|
||||
},
|
||||
lightOn: func(pageLightOn) {
|
||||
if (pageLightOff == "crz") { return; }
|
||||
ECAM.lights[pageLightOn].setBoolValue(1);
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue