Closed lexich closed 8 years ago
Quick monkey patch decision.
var methods = ["next", "prev"];
function patch(func) {
return function() {
var result = func.apply(this, arguments);
result.lat = this.lat;
result.long = this.long;
return result;
};
}
function patchHebcal(Hebcal) {
for (var i = 0; i < methods.length; ++i) {
var name = methods[i];
Hebcal.HDate.prototype[name] = patch(Hebcal.HDate.prototype[name]);
}
};
Main problem is in computing candleLighting
date has lat and long equals 0; and computing executes independs of locations