kopia lustrzana https://github.com/backface/turtlestitch
Fix: Make Comments Detachable from Prototype Hats
rodzic
80ee7b8c53
commit
2e7ea3c14f
4
byob.js
4
byob.js
|
@ -105,7 +105,7 @@ CommentMorph, localize, CSlotMorph*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.byob = '2013-April-03';
|
modules.byob = '2013-April-04';
|
||||||
|
|
||||||
// Declarations
|
// Declarations
|
||||||
|
|
||||||
|
@ -1587,6 +1587,8 @@ BlockEditorMorph.prototype.updateDefinition = function () {
|
||||||
if (head.comment) {
|
if (head.comment) {
|
||||||
this.definition.comment = head.comment.fullCopy();
|
this.definition.comment = head.comment.fullCopy();
|
||||||
this.definition.comment.block = true; // serialize in short form
|
this.definition.comment.block = true; // serialize in short form
|
||||||
|
} else {
|
||||||
|
this.definition.comment = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1584,3 +1584,4 @@ ______
|
||||||
------
|
------
|
||||||
* loading shared projects in presentation mode, exporting URL for shared projects
|
* loading shared projects in presentation mode, exporting URL for shared projects
|
||||||
* Selecting "Help" for a custom block now pops up the comment attached to its definition's prototype hat, if any
|
* Selecting "Help" for a custom block now pops up the comment attached to its definition's prototype hat, if any
|
||||||
|
* BYOB fix for detaching comments from prototype hat blocks
|
||||||
|
|
Ładowanie…
Reference in New Issue