Bug 474309 - error using zoomValues. r=gavin

This commit is contained in:
arno renevier 2009-01-21 16:46:16 +01:00
parent 7551d23393
commit ea52bf9c53

View File

@ -106,7 +106,7 @@ var ZoomManager = {
get zoomValues ZoomManager_get_zoomValues() {
var zoomValues = this._prefBranch.getCharPref("toolkit.zoomManager.zoomValues")
.split(",").map(parseFloat);
zoomValues.sort();
zoomValues.sort(function (a, b) a - b);
while (zoomValues[0] < this.MIN)
zoomValues.shift();