mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 18:34:11 +01:00
"can't convert undefined to object" my arse. Hrmph.
This commit is contained in:
@@ -1093,7 +1093,8 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
|||||||
function compare(a, b) {
|
function compare(a, b) {
|
||||||
if (!isNaN(a[0]) && !isNaN(b[0]))
|
if (!isNaN(a[0]) && !isNaN(b[0]))
|
||||||
return a[0] - b[0];
|
return a[0] - b[0];
|
||||||
return String.localeCompare(a[0], b[0]);
|
return String.localeCompare(String(a[0]),
|
||||||
|
String(b[0]));
|
||||||
}
|
}
|
||||||
|
|
||||||
let vals = template.map(keys.sort(compare), f => f[1],
|
let vals = template.map(keys.sort(compare), f => f[1],
|
||||||
|
|||||||
Reference in New Issue
Block a user