Reputation: 9
Below is my code snippet , where I am getting error like , in IE11
SCRIPT5007: Unable to get property 'init' of undefined or null reference
SCRIPT1003: Expected ':'
But it is working fine in Chrome and other browser like Edge , kindly provide with some viable solution .
<script type="text/javascript">
$(function () {
color.shades.init({
url: {},
});
});
</script>
Upvotes: 0
Views: 886
Reputation: 9
Hi all thanks for your answer , but I was able to trace the issue , as I was using Shorthand function like ,
ToggleEquipmentVisibility() {
Code...... ;
},
which IE11 does not support , so changing it to call back function , like
ToggleEquipmentVisibility : function() {
Code...... ;
},
Solved my issue :) for both the errors .
Upvotes: 1