Symptom is "ll is undefined" at line 65 of previous version of this
file.
Reported by George Duimovich and John Jones.
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
var locs = [];
// sort and append by existing order settings
- dojo.forEach(orders,
+ dojo.forEach(
+ orders,
function(order) {
- locs.push(
- locations.filter(function(l) {return l.id() == order.location()})[0]
+ locs = locs.concat(
+ locations.filter(
+ function(l) { return l.id() == order.location(); }
+ )
);
}
);