Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

1.0RC1: $log.error.apply() resulting in error on IE #805

Closed
nirandas opened this issue Mar 19, 2012 · 0 comments
Closed

1.0RC1: $log.error.apply() resulting in error on IE #805

nirandas opened this issue Mar 19, 2012 · 0 comments
Assignees

Comments

@nirandas
Copy link

New angular 1.0 RC1 line 4942
$log.error.apply($log, arguments);
Results in the following error on IE
"Error: Object doesn't support property or method 'apply'"
In previous versions the apply method was not being used on $log.error. Possible fix at line 6765.

    // we are IE, in which case there is nothing we can do
    return logFn;
@ghost ghost assigned IgorMinar Mar 19, 2012
IgorMinar added a commit to IgorMinar/angular.js that referenced this issue Mar 20, 2012
In IE window.console.log and friends are functions that don't have apply or call fns.

For this reason we have to treat them specially and do our best to log at least
something when running in this browser.

Closes angular#805
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants