Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-10191

Make the XWiki.Document JS API usable before the xwiki:dom:loading event

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      The XWiki.Document API relies on class properties that are initialized during the xwiki:dom:loading phase, which makes it unusable from other code that gets executed before that event, or even from code that hooks into the same event if the event listener order isn't preserved. Since the DOM elements used by this widget are already loaded (meta elements placed before scripts in the head), there's no need to delay the initialization.

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            sdumitriu Sergiu Dumitriu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: