I\'ve been trying to debug some js in Internet Explorer, and I can\'t figure this one out. Here\'s the line that is causing the error:
var numberOfColumns =
Alternatively, you could use a recommended polyfill for browsers that don't natively support Object.keys
Object.keys=Object.keys||function(o,k,r){r=[];for(k in o)r.hasOwnProperty.call(o,k)&&r.push(k);return r}
A break down of what this script does:
Object.keys = Object.keys || function(o,k,r) {
// If the script doesn't detect native Object.keys
// support, it will put a function in its place (polyfill)
r=[];
// Initiate the return value, empty array
for(k in o) r.hasOwnProperty.call(o,k)
// loop through all items in the object and verify each
// key is a property of the object (`for in` will return non
// properties)
&& r.push(k);
// if it is a property, save to return array
return r
}