Ind.ie is now Small Technology Foundation.
Commit 790b3a0c authored by Aral Balkan's avatar Aral Balkan

Removed log statements from the MutationObserver on the All Friends timeline...

Removed log statements from the MutationObserver on the All Friends timeline (along with my snarky comment about JavaScript. Which was *entirely* justified, by the way, but was creating noise :P
parent eed1bcc9
......@@ -20,23 +20,14 @@ window.addEventListener('load', function(){
// e.g., scroll to show a message when one arrives.
//
var mutationObserver = new MutationObserver(function(mutations){
console.log("Mutations received:");
console.log(mutations);
mutations.forEach(function(mutation){
console.log("Mutation: " + mutation.type);
console.log("Mutation target: ");
console.log(mutation.target);
if(mutation.type == "childList") {
console.log("Added nodes:");
var addedNodes = mutation.addedNodes;
// Because, JavaScript, innit?
// Some working group somewhere thought, hey, why the fuck not?
var forEach = Array.prototype.forEach;
forEach.call(addedNodes, function(node){
console.log(node);
// Scroll the added node into view.
node.scrollIntoView();
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment