supports both spellings of flip_rtl
This commit is contained in:
Ethan 2018-03-12 17:14:41 -04:00
parent 718d5cbaf1
commit 3d9c48d128

View file

@ -1513,7 +1513,7 @@ Blockly.Block.newFieldImageFromJson_ = function(options) {
var height =
Number(Blockly.utils.replaceMessageReferences(options['height']));
var alt = Blockly.utils.replaceMessageReferences(options['alt']);
var flip_rtl = !!options['flip_rtl'];
var flip_rtl = !!options['flip_rtl'] || !!options['flipRtl'];
return new Blockly.FieldImage(src, width, height, alt, flip_rtl);
};