Closed florian-h05 closed 10 months ago
Fixes an issue, where the webpacked, globals injected time.toZDT(items.Item) did not work, because https://github.com/openhab/openhab-js/pull/283 did revert https://github.com/openhab/openhab-js/pull/273 and therefore constructor names are not kept.
time.toZDT(items.Item)
This introduces a _isItem helper method, which checks both constructor name or unique properties (rawItem).
_isItem
rawItem
Fixes an issue, where the webpacked, globals injected
time.toZDT(items.Item)
did not work, because https://github.com/openhab/openhab-js/pull/283 did revert https://github.com/openhab/openhab-js/pull/273 and therefore constructor names are not kept.This introduces a
_isItem
helper method, which checks both constructor name or unique properties (rawItem
).