fix lib.dom.ready for new lib.event.when API