UNPKG

skatejs-dom-diff

Version:

Library for efficiently diffing and patching DOM fragments.

14 lines (11 loc) 221 B
import * as types from '../types'; export default function (src, tar) { if (src.textContent === tar.textContent) { return []; } return [{ target: tar, source: src, type: types.TEXT_CONTENT }]; }