Skip to content

Commit

Permalink
Release v0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jsntv200 committed Oct 27, 2014
1 parent da8bfc0 commit c792829
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
14 changes: 12 additions & 2 deletions angular-ra-newrelic.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* angular-ra-newrelic.js v0.1.1
* angular-ra-newrelic.js v0.1.2
* https://github.com/red-ant/angular-ra-newrelic
*/
(function(angular, NewrelicTiming) {
Expand All @@ -15,7 +15,17 @@

angular.module('ra.newrelic', ['ra.pageload']).
run(function($rootScope, $location, newrelicTiming) {
var path;

function changeStart() {
var location_path = $location.path();

if (path && path !== location_path) {
pageLoad();
}

path = location_path;

newrelicTiming.mark('navStart');
}

Expand All @@ -25,7 +35,7 @@

function pageLoad() {
newrelicTiming.mark('pageRendered');
newrelicTiming.sendNRBeacon($location.path());
newrelicTiming.sendNRBeacon(path);
}

// ngRoute
Expand Down
4 changes: 2 additions & 2 deletions angular-ra-newrelic.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 bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-ra-newrelic",
"version": "0.1.1",
"version": "0.1.2",
"description": "AngularJS service to integrate with NewRelic's Real User Monitoring",
"homepage": "https://github.com/red-ant/angular-ra-newrelic",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-ra-newrelic",
"version": "0.1.1",
"version": "0.1.2",
"repository": {
"type": "git",
"url": "git://github.com/red-ant/angular-ra-newrelic.git"
Expand Down

0 comments on commit c792829

Please sign in to comment.