Git Product home page Git Product logo

Comments (7)

damienmcd avatar damienmcd commented on May 20, 2024 1

I've just downloaded the latest release from GitHub and am prepending ofi.min.js and it seems to be working fine now.
I'm not sure what version we had previously as it was added by one of our other devs.
This issue can be closed. Thanks for your help on this.

from object-fit-images.

fregante avatar fregante commented on May 20, 2024

The demo works for me in IE 11. Can you post the full error you're seeing?

from object-fit-images.

damienmcd avatar damienmcd commented on May 20, 2024

The full error in Edge is:

SCRIPT5002: Function Expected
main-min.js (68,5882)

I've updated the initial comment as I've narrowed down the other error that I was seeing but still seeing the issue with the "Function Expected" console error at the objectFitImages section of our main-min.js

from object-fit-images.

fregante avatar fregante commented on May 20, 2024

I don't think the error is caused by OFI. Post the website that you're seeing this issue on so I can take a look.

Make sure you're loading OFI correctly. Are you using browserify? Webpack? How are you loading OFI?

from object-fit-images.

damienmcd avatar damienmcd commented on May 20, 2024

I'm currently seeing the issue while testing a local build.
OFI is being prepended using CodeKit and being called within JQuery with

objectFitImages();

from object-fit-images.

fregante avatar fregante commented on May 20, 2024

Try running

jQuery(function() {
    console.log(typeof objectFitImages);
});

What's its output in the console?

Which OFI file are you prepending? ofi.min.js?

from object-fit-images.

ugrupp avatar ugrupp commented on May 20, 2024

confirmed, upgrading from 2.5.3 to 3.1.0 resolved the issue for me.

from object-fit-images.

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.