File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const someView = Backbone.View.extend({
20
20
```
21
21
22
22
### Example
23
- See [ test/app.js] ( test/app.js ) for an example.
23
+ See [ test/app.js] ( test/app.js ) for an example. [ demo ] ( https://thann.github.com/backbone_scrollBottom )
24
24
25
25
Run test server with ` npm run test ` then navigate to [ localhost:3069] ( http://localhost:3069 ) .
26
26
Original file line number Diff line number Diff line change @@ -6,7 +6,12 @@ const Backbone = require('backbone');
6
6
7
7
const layoutView = Backbone . View . extend ( {
8
8
el : '#app' ,
9
- template : `<div> blah blah </div>` ,
9
+ template : `
10
+ <br>
11
+ <h3> thann/backbone_scrollbottom demo </h3>
12
+ <div> scroll to the bottom, and see more stuff appear </div>
13
+ <br>
14
+ ` ,
10
15
initialize ( ) {
11
16
this . _tmpl = _ . template ( this . template ) ;
12
17
this . initScrollBottom ( ) ;
@@ -22,7 +27,7 @@ const layoutView = Backbone.View.extend({
22
27
// Add a bunch of nonsense
23
28
for ( let i = 0 ; i <= ( x || 0 ) ; i ++ ) {
24
29
for ( let j = 0 ; j < 100 ; j ++ ) {
25
- this . $el . append ( `<div> lame : ${ i } , ${ j } </div>` ) ;
30
+ this . $el . append ( `<div> line : ${ i } , ${ j } </div>` ) ;
26
31
}
27
32
}
28
33
} ,
You can’t perform that action at this time.
0 commit comments