in themes/kube/static/js/kube.js [165:192]
startAutoload: function()
{
if (!window.MutationObserver || this.autoloadQueue.length === 0)
{
return;
}
var self = this;
var observer = new MutationObserver(function(mutations)
{
mutations.forEach(function(mutation)
{
var newNodes = mutation.addedNodes;
if (newNodes.length === 0 || (newNodes.length === 1 && newNodes.nodeType === 3))
{
return;
}
self.startAutoloadOnce();
});
});
// pass in the target node, as well as the observer options
observer.observe(document, {
subtree: true,
childList: true
});
},