Function.subscribeTo() subscribes a method to a list of events
Function subscribeTo(Object publishingObject, MixedType eventTypes, Object bindingScope)
The parameter publishingObject is the object on which you listen to events. The parameter eventTypes is a single String event type or an Array of event types to which to subcribe this Function. The optional parameter bindingScope is the Object to which this Function will be rebound before subscribing.
Returns a Function which is the final method as subscribed.
Subscribes the given events to the publishing object.