Why cant I get nested array property in IE9?
问题 I'm accessing an array stored as an object via jQuery's .data method but for some reason I cannot get the nested property in IE9 var $commentdata = $comment.data('comments'), $position = $commentdata.playtime; In every other browser it works fine. However in IE9 I get the following error:- Error: Unable to get value of the property 'playtime': object is null or undefined Any idea why this may be and how I can fix it? EDIT: Here is the function that is adding the data to the dom: function