function bindEvent( elem, events ) {
  var callback;

  for ( var event in events ) {
    if ( events.hasOwnProperty( event ) ) {
      callback = events[event];
      elem.addEventListener( event, callback );
    }
  }
}
/**
 * Shortcut for binding event listeners to elements.
 * @param  {HTMLNode} elem   The element to attach the event listener to.
 * @param  {Object}   events The list of events to attach to the element.
 */
Shortcut for binding event listeners to elements.
@param  {HTMLNode} elem   The element to attach the event listener to.
@param  {Object}   events The list of events to attach to the element.
Shortcut for binding event listeners to elements . @param { HTMLNode } elem The element to attach the event listener to . @param { Object } events The list of events to attach to the element .
function bindEvent( elem, events ) {
  var callback;
  for ( var event in events ) {
    if ( events.hasOwnProperty( event ) ) {
      callback = events[event];
      elem.addEventListener( event, callback );
    }
  }
}
function bindEvent ( elem , events ) { var callback ; for ( var event in events ) { if ( events . hasOwnProperty ( event ) ) { callback = events [ event ] ; elem . addEventListener ( event , callback ) ; } } }
Shortcut for binding event listeners to elements.
Shortcut for binding event listeners to elements .