mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
Replace ReferenceError with Error.
Change to 4-space indentation rather than aligning with parent structure.
This commit is contained in:
@@ -213,7 +213,7 @@ Blockly.Workspace.prototype.addTopComment = function(comment) {
|
||||
Blockly.Workspace.prototype.removeTopComment = function(comment) {
|
||||
if (!Blockly.utils.arrayRemove(this.topComments_, comment)) {
|
||||
throw Error('Comment not present in workspace\'s list of top-most ' +
|
||||
'comments.');
|
||||
'comments.');
|
||||
}
|
||||
// Note: If the comment database starts to hold block comments, this may need
|
||||
// to move to a separate function.
|
||||
|
||||
Reference in New Issue
Block a user