Browse Source

Removed un-needed tests.

jQuery `.text()` function always returns a string
Troy Morehouse 10 years ago
parent
commit
a6e2e1ec88
1 changed files with 0 additions and 2 deletions
  1. 0 2
      src/extensions/filter-control/bootstrap-table-filter-control.js

+ 0 - 2
src/extensions/filter-control/bootstrap-table-filter-control.js

@@ -72,8 +72,6 @@
             $opts.sort(function(a,b){
                 a = $(a).text().toLowerCase();
                 b = $(b).text().toLowerCase();
-                if (a === undefined || a === null) { a = ''; }
-                if (b === undefined || b === null) { b = ''; }
                 if ($.isNumeric(a) && $.isNumeric(b)) {
                     // Convert numerical values from string to float.
                     a = parseFloat(a);