MDL-71788 calendar: Remove ready state listener
commita067fc1df1b1d0af7ff994dc33798de890f4ab9c
authorJun Pataleta <jun@moodle.com>
Thu, 15 Jul 2021 06:49:07 +0000 (15 14:49 +0800)
committerJun Pataleta <jun@moodle.com>
Thu, 15 Jul 2021 06:55:16 +0000 (15 14:55 +0800)
treecbb3bf3118ef2f1c89148716888cc3fa5445abaa
parent5c701504503489c0533b0ae056e77329c1d66eca
MDL-71788 calendar: Remove ready state listener

Adding a document ready state change listener might be too late by the
time this AMD module gets loaded. So there's really no point listening
for it. It's better to enable the Copy URL button by the time this
the calendar export module gets loaded since at this point, the
copy to clipboard JS module would have been loaded as well.
calendar/amd/build/export.min.js
calendar/amd/build/export.min.js.map
calendar/amd/src/export.js