Giter Club home page Giter Club logo

Comments (8)

tshedor avatar tshedor commented on August 20, 2024

@meandmax IE 9 doesn't support classList. This polyfill did the trick.

from lory.

tshedor avatar tshedor commented on August 20, 2024

Depending on how much you value IE9 support, you could replace the problem lines with classList-less functions.

I've got some experience with this and can open a PR if that'd be easier.

from lory.

meandmax avatar meandmax commented on August 20, 2024

Hey @tshedor,

thanks for the help!

As you can see in "saucelabs.karma.conf.js" I already integrated this polyfill for the tests, and it worked so before I implemented async tests which actually measure the current offset of the slider or am I doing anything wrong?

   files: [
            'dist/lory.js',
            'test/lory.test.js',
            'demo/app.css',
            'http://cdnjs.cloudflare.com/ajax/libs/classlist/2014.01.31/classList.min.js',

            {
                pattern: 'test/*.html'
            }
        ],

Thanks a lot for investing some time!
Max

from lory.

meandmax avatar meandmax commented on August 20, 2024

And actually there are just 7 tests which fail in the IE9, the rest works so far. If there would be a problem with classlist, then all tests in IE9 would fail or what do you think?

Max

from lory.

tshedor avatar tshedor commented on August 20, 2024

Yeah, that's a good point - they would all fail if it was classList. I'll try this in a VM.

from lory.

tshedor avatar tshedor commented on August 20, 2024

All seven of those tests include the waitForTransitionEnd callback - I wonder if it's having a hard time with the && in done && done()?

from lory.

meandmax avatar meandmax commented on August 20, 2024

I will give it a shot!

from lory.

meandmax avatar meandmax commented on August 20, 2024

#153

deactivated the tests in IE9 temp. ... if anybody has an idea, feel free!

Max

from lory.

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.