1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 08:17:59 +01:00

Moved the template class to its own file, along with some related functions from util.js

This commit is contained in:
Kris Maglione
2008-10-07 06:56:58 +00:00
parent d337ab8c53
commit abd879a3e5
7 changed files with 248 additions and 242 deletions

View File

@@ -489,10 +489,12 @@ liberator.Completion = function () //{{{
if (!filter)
return [[a[0], a[1], favicon ? a[2] : null] for each (a in array)];
let result;
if (matchFromBeginning)
return buildLongestStartingSubstring(array, filter, favicon);
result = buildLongestStartingSubstring(array, filter, favicon);
else
return buildLongestCommonSubstring(array, filter, favicon);
result = buildLongestCommonSubstring(array, filter, favicon);
return result;
},
cached: function (key, filter, generate, method)