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

Angular 1.0.3 emitting 'undefined' string trailing each $log.info/err/etc in IE9... #1705

Closed
@arbitrix

Description

@arbitrix
$log.info("My log message.")

should result in

My log message.

but on IE9 it shows:

My log message.undefined

The following patch suppresses this noise:

@@ -5586,7 +5591,7 @@
       // we are IE which either doesn't have window.console => this is noop and we do nothing,
       // or we are IE where console.log doesn't have apply so we log at least first 2 args
       return function(arg1, arg2) {
-        logFn(arg1, arg2);
+        logFn(arg1, arg2 || '');
       }
     }
   }];

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions