Browse Source

Use '===' instead of '=='

yenyen 10 years ago
parent
commit
982be13208
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/extensions/filter-control/bootstrap-table-filter-control.js

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

@@ -250,12 +250,12 @@
                 var $input = $(this),
                 oldValue = $input.val();
 
-                if (oldValue == "") return;
+                if (oldValue === "") return;
 
                 setTimeout(function(){
                     var newValue = $input.val();
 
-                    if (newValue == ""){
+                    if (newValue === ""){
                         clearTimeout(timeoutId);
                         timeoutId = setTimeout(function () {
                             that.onColumnSearch(event);