hack in an appendChild listener
This commit is contained in:
parent
ec472ec0f8
commit
0cfc1d2cfb
|
@ -67,6 +67,14 @@ $(function() {
|
||||||
$('.sidebar-content').css('height', (height + 50) + 'px');
|
$('.sidebar-content').css('height', (height + 50) + 'px');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var hijackAppendChildToExecuteAfter = function(afterFn) {
|
||||||
|
const _appendChild = Node.prototype.appendChild;
|
||||||
|
Node.prototype.appendChild = function() {
|
||||||
|
_appendChild.apply(this, arguments);
|
||||||
|
afterFn();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
animateActiveGameImagesIfFound();
|
animateActiveGameImagesIfFound();
|
||||||
setSideBarPlatformHeight();
|
setSideBarPlatformHeight();
|
||||||
addRandomImageToSideBarMenus();
|
addRandomImageToSideBarMenus();
|
||||||
|
@ -75,7 +83,7 @@ $(function() {
|
||||||
disableResponsiveImagesForInlineLis();
|
disableResponsiveImagesForInlineLis();
|
||||||
resizeSidebar();
|
resizeSidebar();
|
||||||
|
|
||||||
// this sucks... But commento is still editing HTML.
|
// needed for Commento, no 'official' callback when done provided.
|
||||||
setTimeout(resizeSidebar, 2000);
|
hijackAppendChildToExecuteAfter(resizeSidebar);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue