{"size": 387, "ext": "js", "max_stars_repo_path": "src/async-dom/ElementWithChangedAttribute.js", "max_stars_repo_name": "tyleregeto/EHTML", "max_stars_repo_stars_event_min_datetime": "2019-11-18T15:18:17.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-27T15:36:21.000Z", "max_issues_repo_path": "src/async-dom/ElementWithChangedAttribute.js", "max_issues_repo_name": "tyleregeto/EHTML", "max_issues_repo_issues_event_min_datetime": "2019-05-11T17:41:36.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-26T22:26:47.000Z", "max_forks_repo_path": "src/async-dom/ElementWithChangedAttribute.js", "max_forks_repo_name": "Guseyn/hyper-html", "max_forks_repo_forks_event_min_datetime": "2019-11-23T15:02:01.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-27T15:36:26.000Z"}
{"max_stars_count": 175, "max_issues_count": 288, "max_forks_count": 15, "avg_line_length": 20.3684210526, "max_line_length": 55, "alphanum_fraction": 0.684754522}
'use strict'

const { AsyncObject } = require('./../cutie/exports')

class ElementWithChangedAttribute extends AsyncObject {
  constructor (elm, attrName, attrValue) {
    super(elm, attrName, attrValue)
  }

  syncCall () {
    return (elm, attrName, attrValue) => {
      elm.setAttribute(attrName, attrValue)
      return elm
    }
  }
}

module.exports = ElementWithChangedAttribute
