Comments (7)
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.
The demo works for me in IE 11. Can you post the full error you're seeing?
from object-fit-images.
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.
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.
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.
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.
confirmed, upgrading from 2.5.3 to 3.1.0 resolved the issue for me.
from object-fit-images.
Related Issues (20)
- Assignment to read-only properties is not allowed in strict mode HOT 2
- Load event handler should get called when backgroundImage style is rendered. HOT 1
- Changing the src results in a "data-ofi-undefined" attribute. HOT 1
- Media Query images using `<source>` tag not working HOT 2
- Assignment to read-only properties is not allowed in strict mode HOT 13
- Fix documentation on es6 import HOT 7
- How to use this in angular project? HOT 2
- Error during tests HOT 2
- Test in IE with version 3.2.4 HOT 1
- IE11: Including the polyfill in two different libraries via ES6 imports then including both onto the page breaks it HOT 2
- > Assignment to read-only properties is not allowed in strict mode
- Doesn't support Edge 15 HOT 1
- react how to use ,ie11 is not working? HOT 1
- cloudinary videos is not working in IE 11 i.e object fit HOT 1
- Unable to use with Next HOT 2
- A request to have a de-initialization (cleanup) API HOT 2
- IE renders the svg object in background-image property HOT 10
- Uncaught (in promise) TypeError: _objectFitImages2.default.objectFitImages is not a function HOT 1
- Uses src when image has srcset HOT 4
- <picture> element in Edge HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from object-fit-images.