/[bfilter]/trunk/bfilter.js
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/bfilter.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5 by dpavlin, Tue Sep 7 09:16:24 2004 UTC revision 6 by dpavlin, Tue Sep 7 09:29:36 2004 UTC
# Line 61  function results(html,clean) { Line 61  function results(html,clean) {
61    
62  // modified binary search to find first element with substring  // modified binary search to find first element with substring
63  function binarySearch(arr, find) {  function binarySearch(arr, find) {
64          if (!arr ||          if (!arr || typeof (find) == "undefined" || !arr.length) {
                 typeof (arr) != "object" ||  
                 typeof (find) == "undefined" || !arr.length) {  
65                  return null;                  return null;
66          }          }
67          var low = 0;          var low = 0;
# Line 155  function bfilter(document, id, find, arr Line 153  function bfilter(document, id, find, arr
153                          }                          }
154    
155                          results(html);                          results(html);
                 } else {  
                         // clean results list  
 //                      results("",1);  
156                  }                  }
157    
158          }          }

Legend:
Removed from v.5  
changed lines
  Added in v.6

  ViewVC Help
Powered by ViewVC 1.1.26