Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : On IE8 latest canjs is giving error "Object doesn't support this action" when can.Control({},{}); and can.Model({},{}); syntax is used.

$
0
0
Okay thanks Matthew, 

So digging more into the issue, inside of can/util/can.js _logger was causing the "Object doesnt support this action" error from console.log.apply, updating to to the below snippet fixed the issue. 

```
_logger: function (type, arr) {
// test for console support
if (typeof console == "object") {
// test for console.log.apply support in IE8
if (typeof console.log == "object") {
console[type](arr);
} else {
if(console.log.apply){
console[type].apply(console, arr);
} else {
console[type](arr);
}
}
}
}
```

Viewing all articles
Browse latest Browse all 3491

Trending Articles