2013-06-27から1日間の記事一覧
var Index = Backbone.Model.extends({ defaults: function () { return { index: 0 } }, max:0, min:0, next: function () { var index = this.get("index"); index = Math.min(Math.max(index + 1, this.min), this.max); this.set("index", index); }, pr…