Skip to content
This repository was archived by the owner on Apr 2, 2019. It is now read-only.

Commit 87cbaac

Browse files
committed
issue fixed, can now extend Body with row option
1 parent 3b9f08c commit 87cbaac

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/backgrid.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
backgrid 0.3.5
33
http://github.com/wyuenho/backgrid
44
5-
Copyright (c) 2014 Jimmy Yuen Ho Wong and contributors <wyuenho@gmail.com>
5+
Copyright (c) 2015 Jimmy Yuen Ho Wong and contributors <wyuenho@gmail.com>
66
Licensed under the MIT license.
77
*/
88

@@ -2290,7 +2290,7 @@ var Body = Backgrid.Body = Backbone.View.extend({
22902290
this.columns = new Columns(this.columns);
22912291
}
22922292

2293-
this.row = options.row || Row;
2293+
this.row = options.row || this.row || Row;
22942294
this.rows = this.collection.map(function (model) {
22952295
var row = new this.row({
22962296
columns: this.columns,

src/body.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var Body = Backgrid.Body = Backbone.View.extend({
3939
this.columns = new Columns(this.columns);
4040
}
4141

42-
this.row = options.row || Row;
42+
this.row = options.row || this.row || Row;
4343
this.rows = this.collection.map(function (model) {
4444
var row = new this.row({
4545
columns: this.columns,

0 commit comments

Comments
 (0)