diff --git a/README.md b/README.md index 611887d..83f19f6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ -## angular-timer — A simple, re-usable, inter-operable timer directive [![Build Status](https://travis-ci.org/siddii/angular-timer.png)](https://travis-ci.org/siddii/angular-timer) +## angular-timer — A simple, re-usable, inter-operable timer directive + +[![Build Status](https://travis-ci.org/siddii/angular-timer.png)](https://travis-ci.org/siddii/angular-timer) +[![](https://www.codeshelter.co/static/badges/badge-flat.svg)](https://www.codeshelter.co/) ### Getting started With any of the following options... diff --git a/bower.json b/bower.json index ac41067..829ba31 100644 --- a/bower.json +++ b/bower.json @@ -10,7 +10,7 @@ }, "dependencies": { "angular": ">= 1.0.7", - "moment": "~2.9.0", + "moment": "~2.11.2", "humanize-duration": "~3.10.0" }, "devDependencies": { diff --git a/dist/angular-timer.js b/dist/angular-timer.js index 908965c..f927ebb 100644 --- a/dist/angular-timer.js +++ b/dist/angular-timer.js @@ -146,6 +146,7 @@ var timerModule = angular.module('timer', []) $scope.countdown += 1; } $scope.startTime = moment().diff((moment($scope.stoppedTime).diff(moment($scope.startTime)))); + $scope.endTime += moment().diff(moment($scope.stoppedTime)); tick(); $scope.isRunning = true; $scope.$emit('timer-started', {