1
0
Fork 0

Generic MFD : Added optional parameter to update method

When using a data provider, or Emesary it is useful to be able to pass an optional element into the update method for the pages.
This commit is contained in:
Richard Harrison 2016-09-15 00:33:01 +02:00
parent 49836f9956
commit ea32a92fe7

View file

@ -105,7 +105,7 @@ var PFD_Page =
# base method for update; this can be overriden per page instance to provide update of the
# elements on display (e.g. to display updated properties)
update : func
update : func(notification=nil)
{
},
@ -194,10 +194,10 @@ var PFD_Device =
},
#
# manage the update of the currently selected page
update : func
update : func(notification=nil)
{
if (me.current_page != nil)
me.current_page.update();
me.current_page.update(notification);
},
#
# Change to display the selected page.