in which we can take out some code that has been made obsolete by
animation frame based scheduling
dev
Jens Mönig 2016-06-19 22:38:32 -04:00
rodzic ee803ad747
commit fb20fe2933
1 zmienionych plików z 2 dodań i 16 usunięć

18
byob.js
Wyświetl plik

@ -108,7 +108,7 @@ WatcherMorph, Variable*/
// Global stuff ////////////////////////////////////////////////////////
modules.byob = '2016-February-24';
modules.byob = '2016-June-19';
// Declarations
@ -936,7 +936,7 @@ CustomCommandBlockMorph.prototype.mouseEnter = function () {
comment.contents.lines.forEach(function (line) {
help = help + '\n' + line;
});
this.bubbleHelp(
this.popUpbubbleHelp(
help.substr(1),
this.definition.comment.color
);
@ -949,20 +949,6 @@ CustomCommandBlockMorph.prototype.mouseLeave = function () {
}
};
// CustomCommandBlockMorph bubble help:
CustomCommandBlockMorph.prototype.bubbleHelp = function (contents, color) {
var myself = this;
this.fps = 2;
this.step = function () {
if (this.bounds.containsPoint(this.world().hand.position())) {
myself.popUpbubbleHelp(contents, color);
}
myself.fps = 0;
delete myself.step;
};
};
CustomCommandBlockMorph.prototype.popUpbubbleHelp = function (
contents,
color