Skip to content

Commit 2b67fcd

Browse files
committed
#23 - cancel function update
1 parent a98ca48 commit 2b67fcd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/api_block/blockContainer.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,10 @@ define([
285285
// re-render block header
286286
var codeLineStr = block.getNowCodeLine();
287287
block.writeCode(codeLineStr);
288+
this.resetBlockList();
289+
this.resetOptionPage();
290+
this.reRenderAllBlock_asc();
291+
288292
} else {
289293
// blockList에 없으면, 삭제
290294
block.deleteBlock_childBlockList();
@@ -349,6 +353,7 @@ define([
349353
block.isModified = true;
350354
} else {
351355
$(VP_CLASS_PREFIX + 'vp-apiblock-option-new-to-save').css('display', 'none');
356+
block.isModified = false;
352357
}
353358
}
354359
} else {

0 commit comments

Comments
 (0)