This is the line:
songs = songs.filter(function (el) {
return el.album==album;
});
This is the error:
Object doesn’t support this property or method
This Works 100% fine in Chrome. What’s going on?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Array.filter()isn’t included in IE until version 9.You could use this to implement it:
From: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/filter
Or since you are using jQuery, you can wrap your array into a jQuery object first: