removed obsolete code for custom block hover-help

pull/29/head
jmoenig 2017-01-03 17:37:37 +01:00
rodzic 1843e29087
commit b9539918bf
1 zmienionych plików z 0 dodań i 41 usunięć

41
byob.js
Wyświetl plik

@ -959,47 +959,6 @@ CustomCommandBlockMorph.prototype.deleteBlockDefinition = function () {
);
};
// CustomCommandBlockMorph events:
// hover help - commented out for now
/*
CustomCommandBlockMorph.prototype.mouseEnter = function () {
var comment, help;
if (this.isTemplate && this.definition.comment) {
comment = this.definition.comment.fullCopy();
comment.contents.parse();
help = '';
comment.contents.lines.forEach(function (line) {
help = help + '\n' + line;
});
this.popUpbubbleHelp(
help.substr(1),
this.definition.comment.color
);
}
};
CustomCommandBlockMorph.prototype.mouseLeave = function () {
if (this.isTemplate && this.definition.comment) {
this.world().hand.destroyTemporaries();
}
};
CustomCommandBlockMorph.prototype.popUpbubbleHelp = function (
contents,
color
) {
new SpeechBubbleMorph(
contents,
color,
null,
1
).popUp(this.world(), this.rightCenter().add(new Point(-8, 0)));
};
*/
// CustomCommandBlockMorph relabelling
CustomCommandBlockMorph.prototype.relabel = function (alternatives) {