浏览代码

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

yenyen 10 年之前
父节点
当前提交
982be13208
共有 1 个文件被更改,包括 2 次插入2 次删除
  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),
                 var $input = $(this),
                 oldValue = $input.val();
                 oldValue = $input.val();
 
 
-                if (oldValue == "") return;
+                if (oldValue === "") return;
 
 
                 setTimeout(function(){
                 setTimeout(function(){
                     var newValue = $input.val();
                     var newValue = $input.val();
 
 
-                    if (newValue == ""){
+                    if (newValue === ""){
                         clearTimeout(timeoutId);
                         clearTimeout(timeoutId);
                         timeoutId = setTimeout(function () {
                         timeoutId = setTimeout(function () {
                             that.onColumnSearch(event);
                             that.onColumnSearch(event);