Skip to content

export morphAttrs #253

@mihaiav

Description

@mihaiav

Would be possible to export morphAttrs ? I find it useful on onBeforeElUpdated where only the attributes should be patched. e.g

morphdom(fromEl, toEl, {
    onBeforeElUpdated: function (fromEl, toEl) {
      if (fromEl.id === "skip" && toEl.id === "skip") {
        morphAttrs(toEl, fromEl);
        return true;
      }
    }
  });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions