Last active
May 31, 2016 01:50
-
-
Save rniwa/e7656198370c5af502c48087a6fe7c70 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
transaction = new DOMTransaction(function (container, articleList) { | |
var childCount = container.childNodes.length; | |
for (let article of articleList) | |
container.append(article); | |
// No DOM mutation is made until this function exits. | |
console.assert(childCount == container.childNodes.length); | |
}); | |
transaction.commit(element, articles); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment