The goog.labs.observe.Observer Interface

goog.labs.observe.Observer()

A class implementing {@code Observer} may be informed of changes in observable object.

@see
{goog.labs.observe.Observable} @interface

unhandled information:

type
'interface'

.equals

Whether this observer is equal to the given observer.

observer {!goog.labs.observe.Observer}
The observer to compare with.
returns {boolean}
Whether the two observers are equal.

.fromFunction(fn, opt_scope)

Creates an observer that calls the given function.

fn {function(!goog.labs.observe.Notice)}
Function to be converted.
opt_scope {!Object=}
Optional scope to execute the function.
returns {!goog.labs.observe.Observer}
An observer object.

.notify

Notifies the observer of changes to the observable object.

notice {!goog.labs.observe.Notice}
The notice object.