Skip to content

Instantly share code, notes, and snippets.

@ecto
Created April 14, 2014 16:48
Show Gist options
  • Select an option

  • Save ecto/10664545 to your computer and use it in GitHub Desktop.

Select an option

Save ecto/10664545 to your computer and use it in GitHub Desktop.

Revisions

  1. ecto renamed this gist Apr 14, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. ecto created this gist Apr 14, 2014.
    11 changes: 11 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    function Ticker () {
    var ticks = 0;

    this.tick = function () {
    ticks++;
    }

    this.getTicks = funtion () {
    return ticks;
    }
    }