UI-Grid: "Multiple property definitions that are not allowed in strict mode [object Object]" [IE-Only] error

When loading Ui-Grid in IE, it gives error messages -

[true] [SYSERR] Multiple definitions of a property not allowed in strict mode [object Object] 

enter image description here The problem only occurs in IE, without throwing any errors in FireFox and Chrome. Tested in IE version 11.

Thanks at Advance.

+5
source share
2 answers

As an error state, you use somewhere an object with more than one property with the same name. Sort of:

 var obj= { property1: 0, property2: 1, property1: 2 }; 

Printing the top object results in:

 { property1: 2, property2: 1 } 

Also, a little distorted when the stack overflows, you can find a more detailed answer why this error is displayed in Internet Explorer

What is the purpose of resolving duplicate property names?

+6
source

It is difficult to find several definitions manually when you have long code written by someone else.

I used http://jshint.com/ and inserted the code there, it showed me all the repeated warnings, and I fixed that it all worked.

+4
source

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


All Articles