I'm trying to use mootools with labJS (http://labjs.com). Using wait()
and domready fails some times. It seems that on adding the event there
is no check if the dom is still ready, or what is the problem here.

        <script type="text/javascript" src="../js/LAB.js"></script>
        <script type="text/javascript">
                $LAB
                .script("http://exeter:8080/web3CI/js/mootools-1.2.4-core.js";)
                .wait(function(){
                        window.addEvent('domready', function(){
                                alert('test')
                        })
                });
        </script>

Reply via email to