-
-
Notifications
You must be signed in to change notification settings - Fork 271
Edge / IE console error: Function Expected #62
Comments
The demo works for me in IE 11. Can you post the full error you're seeing? |
The full error in Edge is:
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 |
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? |
I'm currently seeing the issue while testing a local build.
|
Try running jQuery(function() {
console.log(typeof objectFitImages);
}); What's its output in the console? Which OFI file are you prepending? ofi.min.js? |
I've just downloaded the latest release from GitHub and am prepending ofi.min.js and it seems to be working fine now. |
confirmed, upgrading from 2.5.3 to 3.1.0 resolved the issue for me. |
I'm seeing this error on Edge, IE11 and IE10.
Seeing 'Function Expected' in the console.
The CSS is implemented with the following:
Calling Object Fit in JQuery as follows:
The text was updated successfully, but these errors were encountered: