Skip to content

Commit

Permalink
Add a comment line for the fix for Issue loicfrering#10.
Browse files Browse the repository at this point in the history
  • Loading branch information
gtzoganis committed Aug 10, 2013
1 parent 8579ce7 commit 59123f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/backbone.datagrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,7 @@ var ActionCell = Datagrid.ActionCell = Cell.extend({
a.attr('href', this.options.href || '#');
if (this.options.actionClassName) {
var actionClassName = this.options.actionClassName;
// Check if the classname is actually a callback and run it if it is.
if (_.isFunction(actionClassName)) {
actionClassName = actionClassName(this.model);
}
Expand Down
1 change: 1 addition & 0 deletions src/views/cells/action-cell.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ var ActionCell = Datagrid.ActionCell = Cell.extend({
a.attr('href', this.options.href || '#');
if (this.options.actionClassName) {
var actionClassName = this.options.actionClassName;
// Check if the classname is actually a callback and run it if it is.
if (_.isFunction(actionClassName)) {
actionClassName = actionClassName(this.model);
}
Expand Down

0 comments on commit 59123f2

Please sign in to comment.