Use correct field name - fixes #559 (#561)

This commit is contained in:
Rodrigo Queiro 2016-08-10 17:35:40 +02:00 committed by Tim Mickel
commit 729bd588f4

View file

@ -175,8 +175,8 @@ Blockly.FieldNumber.prototype.showNumPad_ = function() {
button.title = buttonText;
button.innerHTML = buttonText;
Blockly.bindEvent_(button, 'mousedown', button,
Blockly.FieldNumber.numPadButtonTouch_);
if (buttonText == '.' && !this.decimalAllowed) {
Blockly.FieldNumber.numPadButtonTouch_);
if (buttonText == '.' && !this.decimalAllowed_) {
// Don't show the decimal point for inputs that must be round numbers
button.setAttribute('style', 'visibility: hidden');
}