HASPmota `delete` instead of `delete()` ()

This commit is contained in:
s-hadinger 2024-10-06 21:09:19 +02:00 committed by GitHub
parent d9f246f0f0
commit b5b11d6227
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1471 additions and 1470 deletions
CHANGELOG.md
lib/libesp32_lvgl/lv_haspmota/src

View File

@ -10,6 +10,7 @@ All notable changes to this project will be documented in this file.
- HASPmota `cpicker` and `msgbox`
### Breaking Changed
- HASPmota `delete` instead of `delete()`
### Changed
- ESP32 platform update from 2024.09.10 to 2024.09.30 and Framework (Arduino Core) from v3.0.5 to v3.1.0.240926 (#22203)

View File

@ -132,9 +132,9 @@ class lvh_root
raise "type_error", "you cannot assign to 'delete'"
end
def get_delete()
self.delete()
self._delete()
end
def delete()
def _delete()
# to be overriden
end
@ -658,10 +658,10 @@ class lvh_obj : lvh_root
end
#====================================================================
# `delete` special attribute used to delete the object
# `_delete` special attribute used to delete the object
#====================================================================
# the actual delete method, overriden
def delete()
# the actual _delete method, overriden
def _delete()
# remove any rule
self.remove_val_rule()
self.remove_text_rule()
@ -1858,10 +1858,10 @@ class lvh_scale_section : lvh_root
end
#====================================================================
# `delete` special attribute used to delete the object
# `_delete` special attribute used to delete the object
#====================================================================
# the actual delete method, overriden
def delete()
# the actual _delete method, overriden
def _delete()
self._style.del()
self._style = nil
self._style10.del()