Disabled hover-help for custom blocks

some people find it annoying
pull/29/head
jmoenig 2016-12-29 13:01:09 +01:00
rodzic f6c2b95085
commit c0d192bd1d
2 zmienionych plików z 15 dodań i 4 usunięć

15
byob.js
Wyświetl plik

@ -102,13 +102,12 @@ AlignmentMorph, ToggleMorph, InputFieldMorph, ReporterBlockMorph,
StringMorph, nop, newCanvas, radians, BoxMorph, ArrowMorph, PushButtonMorph,
contains, InputSlotMorph, ToggleButtonMorph, IDE_Morph, MenuMorph, copy,
ToggleElementMorph, Morph, fontHeight, StageMorph, SyntaxElementMorph,
SnapSerializer, CommentMorph, localize, CSlotMorph, SpeechBubbleMorph,
MorphicPreferences, SymbolMorph, isNil, CursorMorph, VariableFrame,
WatcherMorph, Variable*/
SnapSerializer, CommentMorph, localize, CSlotMorph, MorphicPreferences,
SymbolMorph, isNil, CursorMorph, VariableFrame, WatcherMorph, Variable*/
// Global stuff ////////////////////////////////////////////////////////
modules.byob = '2016-December-27';
modules.byob = '2016-December-29';
// Declarations
@ -948,6 +947,9 @@ 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) {
@ -982,6 +984,8 @@ CustomCommandBlockMorph.prototype.popUpbubbleHelp = function (
).popUp(this.world(), this.rightCenter().add(new Point(-8, 0)));
};
*/
// CustomCommandBlockMorph relabelling
CustomCommandBlockMorph.prototype.relabel = function (alternatives) {
@ -1127,11 +1131,14 @@ CustomReporterBlockMorph.prototype.deleteBlockDefinition
// CustomReporterBlockMorph events:
// hover help - commented out for now
/*
CustomReporterBlockMorph.prototype.mouseEnter
= CustomCommandBlockMorph.prototype.mouseEnter;
CustomReporterBlockMorph.prototype.mouseLeave
= CustomCommandBlockMorph.prototype.mouseLeave;
*/
// CustomReporterBlockMorph bubble help:

Wyświetl plik

@ -3223,6 +3223,10 @@ http://snap.berkeley.edu/run#cloud:Username=jens&ProjectName=rotation
------
* GUI, Threads, Objects, Store: Disable JS-Functions, to protect users from malicious scripts, commented out for now
161229
------
* BYOB: Disabled hover-help for custom blocks (some people find it annoying)
== v4.10 === (in development)