Skip to content

Commit bcbca81

Browse files
committed
feat: more log messages for debug
1 parent 5f71c09 commit bcbca81

5 files changed

Lines changed: 17 additions & 1 deletion

File tree

dist/ocLazyLoad.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
$log = {};
4141
$log['error'] = angular.noop;
4242
$log['warn'] = angular.noop;
43+
$log['info'] = angular.noop;
4344
}
4445

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

5660
/**

dist/ocLazyLoad.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/example1/js/ocLazyLoad.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
$log = {};
4141
$log['error'] = angular.noop;
4242
$log['warn'] = angular.noop;
43+
$log['info'] = angular.noop;
4344
}
4445

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

5660
/**

0 commit comments

Comments
 (0)