Fix broken highlighting when highlighted block is deleted. Issue 752.

This commit is contained in:
Neil Fraser
2016-11-21 01:18:28 -08:00
parent 4cda20dbbf
commit a66d274169

View File

@@ -1514,6 +1514,9 @@ Blockly.BlockSvg.prototype.setDisabled = function(disabled) {
* @param {boolean} highlighted True if highlighted.
*/
Blockly.BlockSvg.prototype.setHighlighted = function(highlighted) {
if (!this.rendered) {
return;
}
if (highlighted) {
this.svgPath_.setAttribute('filter',
'url(#' + this.workspace.options.embossFilterId + ')');