Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UI-Grid : Error "Multiple definitions of a property not allowed in strict mode [object Object]" [ IE- Only ]

While loading Ui-Grid In IE throwing error messages -

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

enter image description here Issue is only in IE, Not throwing any errors in FireFox & Chrome. Tested on IE Version-11.

Thanks in Advance.

like image 964
Nidhin T T Avatar asked Feb 19 '16 05:02

Nidhin T T


1 Answers

As the error state, you are using somewhere an object that has more than one property with the same name . Something like :

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

Printing the upper object results in :

{ property1: 2, property2: 1 }

Also searching a little bit on stack overflow, you can find a more detailed answer why this error is outputed in Internet Explorer

What's the purpose of allowing duplicate property names?

like image 164
Lucian Avatar answered Oct 04 '22 21:10

Lucian