From c24bfda7cfdf3164ff75a067abf6f3d6c0b8dc1e Mon Sep 17 00:00:00 2001 From: Sean Lip Date: Tue, 19 Jul 2016 18:43:27 -0700 Subject: [PATCH] Standardize naming convention for marked-spot methods. --- accessible/toolbox-tree.component.js | 6 +++--- accessible/workspace-tree.component.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/accessible/toolbox-tree.component.js b/accessible/toolbox-tree.component.js index c6cc803b8..1397e746d 100644 --- a/accessible/toolbox-tree.component.js +++ b/accessible/toolbox-tree.component.js @@ -62,7 +62,7 @@ blocklyApp.ToolboxTreeComponent = ng.core [attr.aria-level]="level + 2" aria-selected="false"> @@ -149,9 +149,9 @@ blocklyApp.ToolboxTreeComponent = ng.core this.clipboardService.copy(block, true); } }, - copyToMarked: function(block) { + copyToMarkedSpot: function(block) { if (this.clipboardService) { - this.clipboardService.pasteToMarkedConnection(block); + this.clipboardService.pasteToMarkedConnection(block, true); } } }); diff --git a/accessible/workspace-tree.component.js b/accessible/workspace-tree.component.js index 125e95c3c..fdf4c2373 100644 --- a/accessible/workspace-tree.component.js +++ b/accessible/workspace-tree.component.js @@ -159,7 +159,7 @@ blocklyApp.WorkspaceTreeComponent = ng.core } }, this.tree.id); }, - sendToMarkedSpot_: function() { + moveToMarkedSpot_: function() { this.clipboardService.pasteToMarkedConnection(this.block, false); var that = this; @@ -224,9 +224,9 @@ blocklyApp.WorkspaceTreeComponent = ng.core return !that.block.previousConnection; } }, { - baseIdKey: 'sendToMarkedSpot', + baseIdKey: 'moveToMarkedSpot', translationIdForText: 'MOVE_TO_MARKED_SPOT', - action: that.sendToMarkedSpot_.bind(that), + action: that.moveToMarkedSpot_.bind(that), isDisabled: function() { return !that.clipboardService.isMovableToMarkedConnection( that.block);