kopia lustrzana https://github.com/backface/turtlestitch
fixed #1258
in which we can take out some code that has been made obsolete by animation frame based schedulingdev
rodzic
ee803ad747
commit
fb20fe2933
18
byob.js
18
byob.js
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue