Skip to content

Commit

Permalink
add extend duration method
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikos M committed Dec 23, 2015
1 parent d414995 commit 970b351
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions timer.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,15 @@ Timer.prototype = {
return self;
}

,extend: function( duration ) {
var self = this;
if ( self.timer )
{
self.duration += duration|0;
}
return self;
}

,reset: function( duration ) {
var self = this;
if ( self.timer )
Expand Down

0 comments on commit 970b351

Please sign in to comment.