Skip to content

Instantly share code, notes, and snippets.

@A
Created January 28, 2015 19:36
Show Gist options
  • Save A/b267a54a99cc54ba0075 to your computer and use it in GitHub Desktop.
Save A/b267a54a99cc54ba0075 to your computer and use it in GitHub Desktop.
// Model for one pomodoro
var PomodoroModel = Backbone.Model.extend({
start: function () {},
countdown: function () {},
finish: function () {},
isFinished: function () {},
distract: function () {},
});
// Model for pomodoros collection
var PomodoroCollection = Backbine.Collection.extend({
getFinished: function () {},
getDestracted: function () {}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment