Have you had problems with Dojo 1.7.1 in Internet Explorer 7/8?

I am working on updating the application from dojo from 1.4.3 to 1.7.1. Everything works fine in Firefox / Chrome / Safari, but IE7 and IE8 do not work. The first failure seems to come from the code in dojo / ready for line 40.

try{ f(); } // FIXME: signal the error via require.on finally{ onLoadRecursiveGuard = 0; } 

Has anyone else noticed a problem with this? Is there any work? dojo claims it should work in IE 6-9, but I have seen other comments that suggest try / will finally break in IE without catch. It's true? Thank you for any understanding of this problem in advance!

+4
source share
2 answers

I had this problem, and precisely because safeMixin was called throughout my code without checking the arguments passed. safeMixin "presumably" has a valid object passed as an argument.

This can happen if you are a β€œnew” object with an empty constructor, and then pass the arguments directly to safeMixin. There are other cases.

Here is the error report.

+1
source

I had the same issue when using JsonRest:

 var jr = new JsonRest(); // cause exception var jr = new JsonRest({}); // it works 
0
source

Source: https://habr.com/ru/post/1390772/


All Articles