Skip to content

Commit

Permalink
v0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kmdjs committed Jun 3, 2016
1 parent 9d162a3 commit b2eae6f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
6 changes: 6 additions & 0 deletions dev/js/alloy_ticker.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ var AlloyTicker = function(){
this.clockwise = true;
this.ticks=[];
this.isPause = false;
this.isStop = false;
}

AlloyTicker.prototype = {
Expand Down Expand Up @@ -42,11 +43,16 @@ AlloyTicker.prototype = {
},
play :function(){
this.isPause = false;
if(this.isStop){
this.start();
this.isStop = false;
}
},
stop:function() {
this.currentTime = 0;
clearInterval(this.interval);
this.tick();
this.isStop = true;
},
scale:function(value){
clearInterval(this.interval);
Expand Down
6 changes: 6 additions & 0 deletions dist/alloy_ticker.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ var AlloyTicker = function(){
this.clockwise = true;
this.ticks=[];
this.isPause = false;
this.isStop = false;
}

AlloyTicker.prototype = {
Expand Down Expand Up @@ -42,11 +43,16 @@ AlloyTicker.prototype = {
},
play :function(){
this.isPause = false;
if(this.isStop){
this.start();
this.isStop = false;
}
},
stop:function() {
this.currentTime = 0;
clearInterval(this.interval);
this.tick();
this.isStop = true;
},
scale:function(value){
clearInterval(this.interval);
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": "alloyticker",
"version": "0.1.0",
"version": "0.1.1",
"description": "The Master of Time",
"main": "alloyticker.js",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions src/js/alloy_ticker.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ var AlloyTicker = function(){
this.clockwise = true;
this.ticks=[];
this.isPause = false;
this.isStop = false;
}

AlloyTicker.prototype = {
Expand Down Expand Up @@ -42,11 +43,16 @@ AlloyTicker.prototype = {
},
play :function(){
this.isPause = false;
if(this.isStop){
this.start();
this.isStop = false;
}
},
stop:function() {
this.currentTime = 0;
clearInterval(this.interval);
this.tick();
this.isStop = true;
},
scale:function(value){
clearInterval(this.interval);
Expand Down

0 comments on commit b2eae6f

Please sign in to comment.