Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ Please take a look at `newrelic-timing-angular.js` as an example of how to integ

### Changelog

#### 0.4.1 (February 18, 2014)

- NREUM will now be set to be an object if it's not defined when NewrelicTiming is created, this means newrelic scripts can load _after_ it's defined and it should still work.

#### 0.4.0 (February 11, 2014)

- added support for [ui-router](https://github.com/angular-ui/ui-router)
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "newrelic-timing",
"version": "0.4.0",
"version": "0.4.1",
"authors": [
"Diogo Terror <diogo@uken.com>",
"pitr <pitr.vern@gmail.com>"
Expand Down
2 changes: 1 addition & 1 deletion newrelic-timing-angular.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* newrelic-timing v0.4.0 - Integrates Single Page Apps with NewRelic's Real User Monitoring
* newrelic-timing v0.4.1 - Integrates Single Page Apps with NewRelic's Real User Monitoring
* Copyright (c) 2014 Diogo Terror <diogo@uken.com>, pitr <pitr.vern@gmail.com> - https://github.com/uken/newrelic-timing
* License: MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion newrelic-timing-angular.min.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* newrelic-timing v0.4.0 - Integrates Single Page Apps with NewRelic's Real User Monitoring
* newrelic-timing v0.4.1 - Integrates Single Page Apps with NewRelic's Real User Monitoring
* Copyright (c) 2014 Diogo Terror <diogo@uken.com>, pitr <pitr.vern@gmail.com> - https://github.com/uken/newrelic-timing
* License: MIT
*/
Expand Down
4 changes: 2 additions & 2 deletions newrelic-timing.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* newrelic-timing v0.4.0 - Integrates Single Page Apps with NewRelic's Real User Monitoring
* newrelic-timing v0.4.1 - Integrates Single Page Apps with NewRelic's Real User Monitoring
* Copyright (c) 2014 Diogo Terror <diogo@uken.com>, pitr <pitr.vern@gmail.com> - https://github.com/uken/newrelic-timing
* License: MIT
*/
Expand Down Expand Up @@ -47,4 +47,4 @@
return this.marks.navStart && this.marks.domLoaded && this.marks.pageRendered;
};
};
})(window, window.NREUM);
})(window, (window.NREUM = window.NREUM || {}));
4 changes: 2 additions & 2 deletions newrelic-timing.min.js

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "newrelic-timing",
"version": "0.4.0",
"version": "0.4.1",
"scripts": {
"test": "grunt test --verbose"
},
Expand Down
6 changes: 6 additions & 0 deletions spec/newrelic-timing.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
newrelicTiming = new global.NewrelicTiming();
});

describe('NREUM', function () {
it('it should define an object in case it has not been loaded yet', function () {
expect(newrelicTiming.NREUM).toEqual({});
});
});

describe('mark', function() {

it('marks an event', function() {
Expand Down
2 changes: 1 addition & 1 deletion src/newrelic-timing.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@
return this.marks.navStart && this.marks.domLoaded && this.marks.pageRendered;
};
};
})(window, window.NREUM);
})(window, (window.NREUM = window.NREUM || {}));