text: 'use strict';
  
  module.exports = function(elem, type, eventHandle) {
    if (elem == null || typeof elem === 'undefined') {
      return;
    }
    if (elem.addEventListener) {
      elem.addEventListener(type, eventHandle, false);
    } else if (elem.attachEvent) {
      elem.attachEvent('on' + type, eventHandle);
    } else {
      elem['on' + type] = eventHandle;
    }
  }
  