Skip to content

Commit

Permalink
update api example - pause / resume
Browse files Browse the repository at this point in the history
  • Loading branch information
camoconnell committed Sep 12, 2015
1 parent 182f3c7 commit 1c7c6b3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,12 @@

function onPauseClick(){

update($pause, 'pauseResume');

var data = $bottom.lazylinepainter('get');
$pause.html(data.paused ? 'resume' : 'pause');
var state = data.paused ? 'resume' : 'pause';
var html = data.paused ? 'pause' : 'resume';

update($pause, state);
$pause.html(html);
};

function onDestroyClick(){
Expand Down

0 comments on commit 1c7c6b3

Please sign in to comment.