Fix #950: BlockFactory typo and copypasta

This commit is contained in:
Andrew n marshall
2017-02-23 08:53:01 -08:00
parent 3d08099950
commit 7e178af49c

View File

@@ -1173,7 +1173,7 @@ WorkspaceFactoryController.prototype.readOptions_ = function() {
parseFloat(startScaleValue) : startScaleValue;
var maxScaleValue =
document.getElementById('zoomOption_maxScale_number').value;
zoom['maxcale'] = typeof maxScaleValue == 'string' ?
zoom['maxScale'] = typeof maxScaleValue == 'string' ?
parseFloat(maxScaleValue) : maxScaleValue;
var minScaleValue =
document.getElementById('zoomOption_minScale_number').value;
@@ -1181,7 +1181,7 @@ WorkspaceFactoryController.prototype.readOptions_ = function() {
parseFloat(minScaleValue) : minScaleValue;
var scaleSpeedValue =
document.getElementById('zoomOption_scaleSpeed_number').value;
zoom['startScale'] = typeof startScaleValue == 'string' ?
zoom['scaleSpeed'] = typeof scaleSpeedValue == 'string' ?
parseFloat(scaleSpeedValue) : scaleSpeedValue;
optionsObj['zoom'] = zoom;
}