The time control element is removed from the DOM and in Firefox the element does not have ".Zebra_Datepicker" as a parent, because it's no longer part of the DOM. By adding this extra condition, everything still works without any masive refactoring. In Chrome the element is removed from the DOM after the condition is verified, that's why this works in Chrome.
An alternative would be to rethink the code so that the DOM is not rewritten every time the date/time changes.
The time control element is removed from the DOM and in Firefox the element does not have ".Zebra_Datepicker" as a parent, because it's no longer part of the DOM. By adding this extra condition, everything still works without any masive refactoring. In Chrome the element is removed from the DOM after the condition is verified, that's why this works in Chrome.
An alternative would be to rethink the code so that the DOM is not rewritten every time the date/time changes.