function CalculationsViewModel(){var a=this;a.deleting=ko.observable(!1);a.calculations=ko.observableArray([]);a.toggleDeleting=function(){this.deleting(!this.deleting())};a.removeCalculation=function(b){if(void 0!=navigator.camera){var c=b.imageURL();b.removePicture(c)}a.calculations.remove(b);DataProvider.removeCalculation(b.id())};a.getCalculations=function(){a.calculations([]);a.calculations(DataProvider.getCalculations());a.calculations.reverse()}};
