Uploaded image for project: 'Addon Channel Manager'
  1. Addon Channel Manager
  2. CHANNELMGR-1270

The ChannelManager does not work when a site uses require.js: dragula object not loaded

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 4.1.1, 4.2.1
    • Fix Version/s: 5.0.1
    • Labels:
      None
    • Similar issues:
    • Story Points:
      5
    • Flagged:
      Flagged
    • Processed by team:
      Tiger
    • Sprint:
      Tiger Sprint 159, Tiger Sprint 160

      Description

      If a site uses require.js (see http://requirejs.org) for module loading, the Channel Manager does not work because the injected dragula.js does not create a "dragula" object.

      Dragula.js checks if the Javascript object "define.amd" is present in the window and if so, it does not load itself, presumably because it assumes to be loaded through require.js. Object "define.amd" is created by require.js so maybe Dragula assumes itself being loaded in the require.js manner.

      The subsequent usage of Dragula then leads to a Javascript error: t.iframe.dragula is not a function

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jhoffman Jeroen Hoffman
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: