From 337529536526042b72e24dbbd303161ea0c4000c Mon Sep 17 00:00:00 2001 From: Joshua Davidson Date: Tue, 12 Feb 2019 10:50:33 -0500 Subject: [PATCH] Sim: Attempt to fix error on first FG loadup: whoops --- Nasal/libraries.nas | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/Nasal/libraries.nas b/Nasal/libraries.nas index 52c7ebcb..155f9f95 100644 --- a/Nasal/libraries.nas +++ b/Nasal/libraries.nas @@ -301,29 +301,6 @@ setlistener("/options/steep-ils", func { } }); -canvas.Text._lastText = canvas.Text["_lastText"]; -canvas.Text.setText = func(text) { - if (text == me._lastText and text != nil and size(text) == size(me._lastText)) {return me;} - me._lastText = text; - me.set("text", typeof(text) == 'scalar' ? text : ""); -}; -canvas.Element._lastVisible = nil; -canvas.Element.show = func { - if (1 == me._lastVisible) {return me;} - me._lastVisible = 1; - me.setBool("visible", 1); -}; -canvas.Element.hide = func { - if (0 == me._lastVisible) {return me;} - me._lastVisible = 0; - me.setBool("visible", 0); -}; -canvas.Element.setVisible = func(vis) { - if (vis == me._lastVisible) {return me;} - me._lastVisible = vis; - me.setBool("visible", vis); -}; - # In air, flaps 1 is slats only. On ground, it is slats and flaps. setprop("/controls/flight/flap-lever", 0);