{"size": 718, "ext": "js", "max_stars_repo_path": "src/polyfill.js", "max_stars_repo_name": "Sylvain59650/htmlelement-animation", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/polyfill.js", "max_issues_repo_name": "Sylvain59650/htmlelement-animation", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/polyfill.js", "max_forks_repo_name": "Sylvain59650/htmlelement-animation", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.6153846154, "max_line_length": 55, "alphanum_fraction": 0.4791086351}
if (!HTMLElement.prototype.one) {
  HTMLElement.prototype.one = function(evtNames, fn) {
    let evts = evtNames.split(" ");
    let cb = fn;
    for (let i = 0; i < evts.length; i++) {
      let evt = evts[i];
      if (this.addEventListener) {
        if (!!document.documentMode) {
          var self = this;
          fn.removed = false;
          var oneCall = function() {
            if (!fn.removed) {
              fn(event);
              fn.removed = true;
            }
            self.off(evt, oneCall);
          }
          cb = oneCall;
        }
        this.addEventListener(evt, fn, { once: true });
      } else if (this.attachEvent) {
        this.attachEvent("on" + evt, fn);
      }
    }
  }
}