A proxy for EventEmitter objects. The proxied object may be swapped by another object, at which point the event handlers will be removed from the old object and added to the new one.
Originally implemented for video controls with multiple resolutions, so that the underlying Video element could be easily swapped by one with a different resolution.
The proxied object must implement an addEventListener() and removeEventListener() method.
object may be null
Calls object.addEventListener() with the same arguments. If setObject() is called, removeEventListener() will be called with the same arguments.
The proxy itself is an event emitter. It emits the objectChange event. Use this method to listen to it.