Skip to content

Commit ad8345a

Browse files
author
Randi Thomas
committed
enable endView to be called when not explicitly configured
- this is necessary when things like directives are the last marker to complete and do not kick off a digest
1 parent 7fb203b commit ad8345a

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-apm",
33
"main": "angular-apm.js",
4-
"version": "0.1.1",
4+
"version": "0.1.2",
55
"homepage": "https://github.com/randith/angular-apm",
66
"authors": [
77
"randith <randi.l.thom@gmail.com>"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-apm",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "angular module for application performance monitoring",
55
"main": "angular-apm.js",
66
"directories": {

src/angular-apm.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,12 @@
111111
perfGoodness.endView = function() {
112112
if (!options.enabled) {
113113
return;
114-
} else if (!options.reportOnEndView) {
115-
console.warn("Called endView with reportOnEndView set to false");
116-
return;
117-
} else if (!viewName) {
118-
console.warn("Called endView when view not started");
119-
return;
120114
}
121-
reportResults(viewName, $http, this);
115+
if (!viewName) {
116+
reportResults('markers', $http, this);
117+
} else {
118+
reportResults(viewName, $http, this);
119+
}
122120
};
123121

124122
/**

0 commit comments

Comments
 (0)