|
@@ -90,11 +90,11 @@ const SpreadJsObj = {
|
|
|
addCutEvents: function (spread, fun) {
|
|
|
const cut = spreadNS.Commands.cut.execute;
|
|
|
spreadNS.Commands.cut.execute = function (context, options, isUndo) {
|
|
|
- const self = this, sheet = context.getActiveSheet();
|
|
|
+ const sheet = context.getActiveSheet();
|
|
|
const sels = sheet.getSelections();
|
|
|
const sel = sels ? sels[0] : null;
|
|
|
if (sel) {
|
|
|
- return fun(sheet, sel, function () {
|
|
|
+ return fun(sheet, sel, function () {
|
|
|
cut(context, options, isUndo);
|
|
|
});
|
|
|
}
|