Merge pull request #1039 from marisaleung/develop

Ensure useDragSurface is a boolean.
This commit is contained in:
marisaleung
2017-04-11 15:42:53 -07:00
committed by GitHub

View File

@@ -89,7 +89,7 @@ Blockly.BlockSvg = function(workspace, prototypeName, opt_id) {
* @type {boolean}
* @private
*/
this.useDragSurface_ = Blockly.utils.is3dSupported() && workspace.blockDragSurface_;
this.useDragSurface_ = Blockly.utils.is3dSupported() && !!workspace.blockDragSurface_;
Blockly.Tooltip.bindMouseEvents(this.svgPath_);
Blockly.BlockSvg.superClass_.constructor.call(this,