slideout icon indicating copy to clipboard operation
slideout copied to clipboard

Slideout with backbone.js and require.js

Open seth100 opened this issue 7 years ago • 1 comments

Hi,

I use backbone.js and require.js, is it possible to add it using require.js? I tried this:

require.config({
  paths: {
    jquery: '../lib/jquery/jquery-3.2.0.min',
    "slideout": "../lib/slideout/slideout.min",
  },
  shim: {
    // ...
  }
});

and then in my module:

define(['jquery', 'slideout'],
        function ($, Slideout) {
   // ...
});

but it does not work, it says Slideout is not defined.

Thanks

seth100 avatar May 13 '17 06:05 seth100

Same thing! Using slideout.js in require.js in Magento 2. And there is in error "ReferenceError: Slideout is not defined".

val7000 avatar Sep 21 '17 15:09 val7000