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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user