Skip to content

Commit aeb4c38

Browse files
fix 2682, add extra check for already ready DOM
add a `if (!ready) check();` for cases when MooTools is added to a page that is already loaded.
1 parent 9adadae commit aeb4c38

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/Utilities/DOMReady.js

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ if ('onreadystatechange' in document) document.addListener('readystatechange', c
7777
else shouldPoll = true;
7878

7979
if (shouldPoll) poll();
80+
if (!ready) check();
8081

8182
Element.Events.domready = {
8283
onAdd: function(fn){

0 commit comments

Comments
 (0)