constructor new Form.Observer

View source on GitHub →

new Form.Observer(element, frequency, callback)
  • element (String | Element) – The element of the form to watch. Can be an element instance or an ID.
  • frequency (Number) – The frequency, in seconds -- e.g., 0.33 to check for changes every third of a second.
  • callback (Function) – The callback to trigger when the form changes.

Creates a Form.Observer.