Skip to content

Commit

Permalink
added default values to default sort function
Browse files Browse the repository at this point in the history
  • Loading branch information
grese committed Feb 13, 2015
1 parent b06ce51 commit 33d67d7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dist/ember-bootstrap-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
_columnIndex: 0,
sortOn: null,
sort: function(column, rows, isAscending){
rows = rows || [];
column = column || Em.Object.create();
var getCellContent = column.get('getCellContent'),
valuePath = column.get('cellValuePath'),
sortOnCellValuePath = column.get('sortOn') && (column.get('sortOn') === 'cellValuePath');
Expand Down
Loading

0 comments on commit 33d67d7

Please sign in to comment.