From aa62bfa4f04a9ebbcf377c6ef8a23cf145fa9c44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20Mo=CC=88nig?= Date: Thu, 25 Jan 2018 08:54:29 +0100 Subject: [PATCH] updated history and made Lint happy :-) --- gui.js | 13 ++++++------- history.txt | 2 ++ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/gui.js b/gui.js index 978de46c..a4d8da72 100644 --- a/gui.js +++ b/gui.js @@ -71,7 +71,7 @@ fontHeight, hex_sha512, sb, CommentMorph, CommandBlockMorph, BooleanSlotMorph, BlockLabelPlaceHolderMorph, Audio, SpeechBubbleMorph, ScriptFocusMorph, XML_Element, WatcherMorph, BlockRemovalDialogMorph, saveAs, TableMorph, isSnapObject, isRetinaEnabled, disableRetinaSupport, enableRetinaSupport, -isRetinaSupported, SliderMorph, Animation*/ +isRetinaSupported, SliderMorph, Animation, BoxMorph*/ // Global stuff //////////////////////////////////////////////////////// @@ -2383,7 +2383,7 @@ IDE_Morph.prototype.newSpriteName = function (name, ignoredSprite) { ).map( function (each) {return each.name; } ); - return this.newName(name, all) + return this.newName(name, all); }; IDE_Morph.prototype.newName = function (name, elements) { @@ -8246,7 +8246,7 @@ JukeboxMorph.prototype.updateList = function () { recordButton = new PushButtonMorph( ide, 'recordNewSound', - new SymbolMorph('circleSolid', 15), + new SymbolMorph('circleSolid', 15) ); recordButton.padding = 0; recordButton.corner = 12; @@ -8871,7 +8871,8 @@ SoundRecorderDialogMorph.prototype.buildProgressBar = function () { this.indicator.setLeft( line.left() + (line.width() / 100 * percentage) - - this.indicator.width() / 2) + this.indicator.width() / 2 + ); }; this.progressBar.step = function () { @@ -8892,8 +8893,6 @@ SoundRecorderDialogMorph.prototype.record = function () { }; SoundRecorderDialogMorph.prototype.stop = function () { - var myself = this; - if (this.mediaRecorder && this.mediaRecorder.state !== 'inactive') { this.mediaRecorder.stop(); } @@ -8910,7 +8909,7 @@ SoundRecorderDialogMorph.prototype.play = function () { this.audioElement.oncanplaythrough = function () { this.play(); this.oncanplaythrough = nop; - } + }; this.playButton.label.setColor(new Color(0, 255, 0)); }; diff --git a/history.txt b/history.txt index 4347554b..632ab9d7 100755 --- a/history.txt +++ b/history.txt @@ -3874,6 +3874,7 @@ Fixes: * Blocks: added dial widget to POINT IN DIRECTION's drop-down menu * Objects: added "rotate" option to Sprite context menu * Threads, Blocks: fixed Joan's fix for #1972, because it broke HOFs +* new Sound Recorder, yay!! Thanks, Bernat! @@ -3885,6 +3886,7 @@ v4.1.1 New Features: * added scroll events, thanks, Bernat! * new dial widget POINT IN DIRECTION's drop-down menu * new "rotate" option for sprite context menu +* new sound recorder, thanks, Bernat! Notable Changes: * global and local variables are now separat in the palette, each sorted alphabetically, local vars marked with location pin (only in palette)