Commit 9746650a authored by Neil Fraser's avatar Neil Fraser

Disable comment creation in IE.

parent 554244fd
...@@ -32,6 +32,7 @@ goog.require('goog.Timer'); ...@@ -32,6 +32,7 @@ goog.require('goog.Timer');
goog.require('goog.asserts'); goog.require('goog.asserts');
goog.require('goog.dom'); goog.require('goog.dom');
goog.require('goog.math.Coordinate'); goog.require('goog.math.Coordinate');
goog.require('goog.userAgent');
/** /**
...@@ -576,7 +577,7 @@ Blockly.BlockSvg.prototype.showContextMenu_ = function(e) { ...@@ -576,7 +577,7 @@ Blockly.BlockSvg.prototype.showContextMenu_ = function(e) {
if (this.isEditable() && !this.collapsed_ && if (this.isEditable() && !this.collapsed_ &&
this.workspace.options.comments) { this.workspace.options.comments) {
// Option to add/remove a comment. // Option to add/remove a comment.
var commentOption = {enabled: true}; var commentOption = {enabled: !goog.userAgent.IE};
if (this.comment) { if (this.comment) {
commentOption.text = Blockly.Msg.REMOVE_COMMENT; commentOption.text = Blockly.Msg.REMOVE_COMMENT;
commentOption.callback = function() { commentOption.callback = function() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment