aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/services.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/services.js b/src/services.js
index aa749e32..93822a8c 100644
--- a/src/services.js
+++ b/src/services.js
@@ -64,11 +64,16 @@ angularService("$location", function(browser){
return location;
}, {inject: ['$browser']});
-angularService("$log", function(){
+angularService("$log", function($window){
+ var console = $window.console,
+ log = console && console.log || noop;
return {
- error: noop
+ log: log,
+ warn: console && console.warn || log,
+ info: console && console.info || log,
+ error: console && console.error || log
};
-});
+}, {inject:['$window']});
angularService("$hover", function(browser) {
var tooltip, self = this, error, width = 300, arrowWidth = 10;