- 
                Notifications
    
You must be signed in to change notification settings  - Fork 86
 
Open
Labels
Milestone
Description
This code:
angular.module("materialCalendar").constant("materialCalendar.config", {
     version: "0.2.13",
     debug: document.domain.indexOf("localhost") > -1
});
angular.module("materialCalendar").config(["materialCalendar.config", "$logProvider", "$compileProvider", function (config, $logProvider, $compileProvider) {
    if (config.debug) {
        $logProvider.debugEnabled(false);
        $compileProvider.debugInfoEnabled(false);
    }
}]);
- leads to disabled $log.debug in whole app on localhost (which is probably opposite of intended goal as we usually debug on localhost only)
 - disabling global $log.debug by directive is sort of unexpected and unwanted behaviour (I thought my browser console is broken 😄)
 - $log.debug is not used at all in the calendar directive so the 
$logProvider.debugEnabled(false);can be removed anyway