Permalink
Browse files

Merge branch 'master' of github.com:jupiterjs/canjs

  • Loading branch information...
2 parents 6c72311 + f2e8027 commit eed12eaaa296de14d301cd5c14320771bff7ef33 @amcdnl amcdnl committed Apr 1, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 observe/setter/setter-paginate.html
@@ -25,7 +25,7 @@
var Paginate = can.Model({
defaults : {
count: Infinity,
- offset: 0,
+ offset: 10,
limit: 100
}
},{
@@ -50,7 +50,7 @@
})
var Paginator = can.Control({
- '.next click', function(elm,ev){
+ '.next click': function(elm,ev){
this.options.paginate.attr('offset', this.options.paginate.offset +
this.options.paginate.limit);
},
@@ -74,6 +74,8 @@
paginate: new Paginate()
})
+})
+
</script>
</body>
</html>

0 comments on commit eed12ea

Please sign in to comment.