File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -29,20 +29,20 @@ angular.module('timer', [])
29
29
$scope . stop ( ) ;
30
30
} ) ;
31
31
32
- function reset ( ) {
32
+ function resetTimeout ( ) {
33
33
if ( $scope . timeoutId ) {
34
34
$timeout . cancel ( $scope . timeoutId ) ;
35
35
}
36
36
}
37
37
38
38
$scope . start = $element [ 0 ] . start = function ( ) {
39
39
$scope . startTime = new Date ( ) ;
40
- reset ( ) ;
40
+ resetTimeout ( ) ;
41
41
tick ( ) ;
42
42
} ;
43
43
44
44
$scope . resume = $element [ 0 ] . resume = function ( ) {
45
- reset ( ) ;
45
+ resetTimeout ( ) ;
46
46
$scope . startTime = new Date ( ) - ( $scope . stoppedTime - $scope . startTime ) ;
47
47
tick ( ) ;
48
48
} ;
Original file line number Diff line number Diff line change 238
238
< p >
239
239
© Siddique Hameed 2013</ p >
240
240
</ footer > </ div >
241
- < script src ="docs/prettify.js "> </ script > < script src ="docs/application.js "> </ script > < script id ="cke_actscrpt " type ="text/javascript ">
242
- window . parent . CKEDITOR . _ [ "contentDomReadyeditor1" ] ( window ) ; </ script > </ body >
241
+ < script src ="docs/prettify.js "> </ script > < script src ="docs/application.js "> </ script > </ body >
243
242
</ html >
You can’t perform that action at this time.
0 commit comments