This file contains 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
function allChildren(root) { | |
var node = root.firstChild; | |
var result = []; | |
var next; | |
while (node && node !== root) { | |
result.push(node); | |
next = node.firstChild || node.nextSibling; |
This file contains 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
// Forcing Opera full page reflow/repaint to fix page draw bugs | |
function forceOperaRepaint() { | |
if (window.opera) { | |
var bs = document.body.style; | |
bs.position = 'relative'; | |
setTimeout(function() { | |
bs.position = 'static'; | |
}, 1); | |
} | |
} |