Fixed a ReferenceError when processing the SlicingProgress events

This commit is contained in:
Gina Häußge 2015-12-17 13:57:39 +01:00
parent 7791f7751f
commit 376c832b0b

View file

@ -106,6 +106,7 @@ function DataUpdater(allViewModels) {
self._onSlicingProgress = function(event) {
$("#gcode_upload_progress").find(".bar").text(_.sprintf(gettext("Slicing ... (%(percentage)d%%)"), {percentage: Math.round(event.data["progress"])}));
var data = event.data;
callViewModels(self.allViewModels, "onSlicingProgress", [
data["slicer"],
data["model_path"],