Uploaded image for project: '[Read Only] - Addon Channel Manager'
  1. [Read Only] - Addon Channel Manager
  2. CHANNELMGR-1270

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 4.1.1, 4.2.1
    • 5.0.1
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved: