possible bug

possible bug

jrohrjrohr Posts: 2Questions: 1Answers: 0
edited May 2016 in Free community support

I have been logging javascript errors on our site and have came across a bug that is found at line 5657

Uncaught TypeError: Cannot read property 'opener' of undefined

If the view is undefined, it will error out in google chrome.

The error is thrown when closing a bootstrap Modal with an iframe inside (linking back to local site )

Answers

  • allanallan Posts: 63,124Questions: 1Answers: 10,397 Site admin

    Can you give me a link to a test case showing the issue, or are least show me the code you are using please? Doing a search in the DataTables source shows it doesn't use a variable called opener at all, so I guess it might be in an extension, or perhaps somewhere else. I'm afraid I have no idea what code is at line 5657 in whatever file that might be!

    Allan

  • jrohrjrohr Posts: 2Questions: 1Answers: 0

    This is the build that i downloaded. The file that is throwing the error is datatables.js

    https://datatables.net/download/#dt/jq-2.2.0,dt-1.10.11,r-2.0.2

  • allanallan Posts: 63,124Questions: 1Answers: 10,397 Site admin

    Thank you. This is the link to the file in question and the line:

    if ( !view.opener ) {
    

    is in jQuery itself.

    I'm afraid I don't know why jQuery would be throwing an error there. I would need a link to a test page showing the issue so I can debug it please.

    Allan

This discussion has been closed.