Giter Club home page Giter Club logo

Comments (5)

 avatar commented on July 21, 2024

Damn! That is very frustrating! Oh well - so it goes. I'll need to update all of the extensions. Fortunately I've still not got around to publicising the AMP module aspect of them in any documentation yet, so I guess that's sort of good...

from scroller.

janekbettinger avatar janekbettinger commented on July 21, 2024

It's probably not so bad. Initially I assumed that RequireJS was not able to handle the current identifier, however, it turned out that it works nevertheless.

from scroller.

 avatar commented on July 21, 2024

Just to check, it does work with the current formatting for you? I don't have a demo setup at the moment to test it myself, but I was sure I had tested it when I implemented it... However, it probably is better to get it right before I broadcast that this feature is in there... :-)

from scroller.

janekbettinger avatar janekbettinger commented on July 21, 2024

I am not that familiar with AMD and RequireJS, however, it definitely works using the following configuration:

require.config({
    baseUrl: 'lib',
    paths: {
        datatables: 'datatables/datatables',
        'datatables-scroller': 'datatables/scroller/js/dataTables.scroller',
        // …
    },
    // …
})

// Load the main app module to start the app
requirejs(["app/main"]);

I also use some other libraries that haven't built-in support for AMD and they require some special configuration (http://requirejs.org/docs/api.html#config-shim). On the other hand, for DataTables (and Scroller) the shim configuration is not necessary. They just work "out of the box".

from scroller.

 avatar commented on July 21, 2024

Fixed by this commit: f32487b. I've removed the named AMD loader for all DataTables extensions. It remains for DataTables core, since the extensions need to be able to reference DataTables by a name, but the extensions are all anonymous now.

from scroller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.