mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
Move clipboard functions to a separate namespace
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* @namespace
|
||||
*/
|
||||
goog.provide('Blockly.ContextMenuItems');
|
||||
|
||||
goog.require('Blockly.clipboard');
|
||||
/** @suppress {extraRequire} */
|
||||
goog.require('Blockly.constants');
|
||||
goog.require('Blockly.ContextMenuRegistry');
|
||||
@@ -316,7 +316,7 @@ Blockly.ContextMenuItems.registerDuplicate = function() {
|
||||
},
|
||||
callback: function(/** @type {!Blockly.ContextMenuRegistry.Scope} */ scope) {
|
||||
if (scope.block) {
|
||||
Blockly.duplicate(scope.block);
|
||||
Blockly.clipboard.duplicate(scope.block);
|
||||
}
|
||||
},
|
||||
scopeType: Blockly.ContextMenuRegistry.ScopeType.BLOCK,
|
||||
|
||||
Reference in New Issue
Block a user