I need to be able to ignore certain hours when performing certain tasks. Here is the script.
I have a couple of field observers that are used to compute the totals field.
All these fields can be changed manually, which will trigger the clock, which calculates the field "total values".
Fields can also be loaded from a saved state, which also starts a clock that calculates a “totals” field.
The totals field can also be manually redefined, saved, and loaded.
The problem occurs when a manually overridden "totalals" field is loaded with other fields. Hours that recalculate totals start and overwrite manually overridden totals.
I need to be able to ignore the clock at boot time. Is there any way to do this?
I know that an observer can be disabled using the unregister function, which is transmitted back when the chat is created, but when the observer is recreated, it is still known that the data that he was viewing has changed.
Note. This is a simplified description of the business logic associated with the problem. Failure to turn off the clock will require a significant amount of work.
Here is the fiddle showing the problem: jsfiddle.net/vGWZy/1/