Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
Conflicts:
	dist/angular-timer.js
	dist/angular-timer.min.js
  • Loading branch information
Mehdi Chamouma authored and Mehdi Chamouma committed May 17, 2014
2 parents 07bbada + 6d59153 commit 47a2daf
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 7 deletions.
3 changes: 2 additions & 1 deletion app/js/timer.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ angular.module('timer', [])
};

$scope.stop = $scope.pause = $element[0].stop = $element[0].pause = function () {
var timeoutId = $scope.timeoutId;
$scope.clear();
$scope.$emit('timer-stopped', {millis: $scope.millis, seconds: $scope.seconds, minutes: $scope.minutes, hours: $scope.hours, days: $scope.days});
$scope.$emit('timer-stopped', {timeoutId: timeoutId, millis: $scope.millis, seconds: $scope.seconds, minutes: $scope.minutes, hours: $scope.hours, days: $scope.days});
};

$scope.clear = $element[0].clear = function () {
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "Siddique Hameed",
"name": "angular-timer",
"version": "1.1.0",
"version": "1.1.1",
"homepage": "https://github.com/siddii/angular-timer",
"description": "Angular-Timer : A simple AngularJS directive demonstrating re-usability & interoperability",
"repository": {
Expand Down
3 changes: 3 additions & 0 deletions dist/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
##Change Log

###Version 1.1.1
* Fix for https://github.com/siddii/angular-timer/issues/73

###Version 1.1.0
* Plural/singular units. PR - https://github.com/siddii/angular-timer/pull/54
* IE8 support. PR - https://github.com/siddii/angular-timer/pull/62
Expand Down
5 changes: 3 additions & 2 deletions dist/angular-timer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* angular-timer - v1.1.0 - 2014-05-17 1:35 AM
* angular-timer - v1.1.1 - 2014-05-17 3:24 AM
* https://github.com/siddii/angular-timer
*
* Copyright (c) 2014 Siddique Hameed
Expand Down Expand Up @@ -93,8 +93,9 @@ angular.module('timer', [])
};

$scope.stop = $scope.pause = $element[0].stop = $element[0].pause = function () {
var timeoutId = $scope.timeoutId;
$scope.clear();
$scope.$emit('timer-stopped', {millis: $scope.millis, seconds: $scope.seconds, minutes: $scope.minutes, hours: $scope.hours, days: $scope.days});
$scope.$emit('timer-stopped', {timeoutId: timeoutId, millis: $scope.millis, seconds: $scope.seconds, minutes: $scope.minutes, hours: $scope.hours, days: $scope.days});
};

$scope.clear = $element[0].clear = function () {
Expand Down
4 changes: 2 additions & 2 deletions dist/angular-timer.min.js

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

4 changes: 4 additions & 0 deletions examples/angularjs-multiple-timers.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
$scope.$broadcast('timer-stop');
$scope.timerRunning = false;
};

$scope.$on('timer-stopped', function (event, args) {
console.log('timer-stopped args = ', args);
});
}
MyAppController.$inject = ['$scope'];
</script>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "Siddique Hameed",
"name": "angular-timer",
"version": "1.1.0",
"version": "1.1.1",
"homepage": "https://github.com/siddii/angular-timer",
"licenses": {
"type": "MIT",
Expand Down

0 comments on commit 47a2daf

Please sign in to comment.