Skip to content

Commit

Permalink
feat: more log messages for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ocombe committed Aug 25, 2014
1 parent 5f71c09 commit bcbca81
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
4 changes: 4 additions & 0 deletions dist/ocLazyLoad.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
$log = {};
$log['error'] = angular.noop;
$log['warn'] = angular.noop;
$log['info'] = angular.noop;
}

// Make this lazy because at the moment that $get() is called the instance injector hasn't been assigned to the rootElement yet
Expand All @@ -51,6 +52,9 @@
if(events) {
$rootScope.$broadcast(eventName, params);
}
if(debug) {
$log.info(eventName, params);
}
}

/**
Expand Down
2 changes: 1 addition & 1 deletion dist/ocLazyLoad.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions examples/example1/js/ocLazyLoad.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
$log = {};
$log['error'] = angular.noop;
$log['warn'] = angular.noop;
$log['info'] = angular.noop;
}

// Make this lazy because at the moment that $get() is called the instance injector hasn't been assigned to the rootElement yet
Expand All @@ -51,6 +52,9 @@
if(events) {
$rootScope.$broadcast(eventName, params);
}
if(debug) {
$log.info(eventName, params);
}
}

/**
Expand Down
Loading

0 comments on commit bcbca81

Please sign in to comment.