Skip to content

Conversation

@kapouer
Copy link
Contributor

@kapouer kapouer commented May 27, 2016

Example of what i'm doing with it:

var diffd;
function morph(from, to) {
    if (!diffd) diffd = new diffDOM({
        filterOuterDiff: function(from, to, diffs) {
            if (/^component-/i.test(from.nodeName) && !diffs.length) {
                from.innerDone = true;
            }
        }
    });
    diffd.apply(from, diffd.diff(from, to));
}

this allows to ignore inner nodes of custom elements, when no shadow dom allows me to make it completely transparent.

@johanneswilm
Copy link
Member

thanks. looks good! Sorry for slow response.

@johanneswilm johanneswilm merged commit 4a92026 into fiduswriter:gh-pages Jul 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants