From 130e105ea34f92429397611ee5f01a75f25438f6 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Wed, 13 Aug 2014 17:43:49 +0200 Subject: enable Zombiefication of JS-Functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit you can now redirect “this” in a JS function by binding it to another sprite using the OF block --- blocks.js | 7 ++++--- history.txt | 5 +++++ threads.js | 4 ++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/blocks.js b/blocks.js index 2e297ab..5f9bb29 100644 --- a/blocks.js +++ b/blocks.js @@ -155,7 +155,7 @@ DialogBoxMorph, BlockInputFragmentMorph, PrototypeHatBlockMorph, Costume*/ // Global stuff //////////////////////////////////////////////////////// -modules.blocks = '2014-July-30'; +modules.blocks = '2014-August-13'; var SyntaxElementMorph; @@ -396,10 +396,11 @@ SyntaxElementMorph.prototype.allInputs = function () { SyntaxElementMorph.prototype.allEmptySlots = function () { /* answer empty input slots of all children excluding myself, - but omit those in nested rings (lambdas) + but omit those in nested rings (lambdas) and JS-Function primitives */ var empty = []; - if (!(this instanceof RingMorph)) { + if (!(this instanceof RingMorph) && + (this.selector !== 'reportJSFunction')) { this.children.forEach(function (morph) { if (morph.isEmptySlot && morph.isEmptySlot()) { empty.push(morph); diff --git a/history.txt b/history.txt index 0a7dfe6..7d60971 100755 --- a/history.txt +++ b/history.txt @@ -2256,3 +2256,8 @@ ______ * Objects: propagate HIDE and SHOW to nested sprite parts * GUI: propagate DELETE to nested sprite parts * Blocks, Threads: export script pic with result bubble (shift-context-menu of reporter scripts) +* updated Portuguese translation, thanks, Manuel! + +140813 +------ +* Threads, Blocks: enable Zombiefication of JS-Functions diff --git a/threads.js b/threads.js index 3324ac6..335b5d0 100644 --- a/threads.js +++ b/threads.js @@ -83,7 +83,7 @@ ArgLabelMorph, localize, XML_Element, hex_sha512*/ // Global stuff //////////////////////////////////////////////////////// -modules.threads = '2014-July-30'; +modules.threads = '2014-August-13'; var ThreadManager; var Process; @@ -774,7 +774,7 @@ Process.prototype.evaluate = function ( if (!context) {return null; } if (context instanceof Function) { return context.apply( - this.homeContext.receiver, + this.blockReceiver(), args.asArray().concat([this]) ); } -- cgit v1.3.1 From 8f7d1833f6e6b304e706bb84848dbf86a80834c8 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Wed, 13 Aug 2014 18:06:57 +0200 Subject: Fix #563 (Paste into Chrome), thanks, @Muon, for the hint! --- history.txt | 1 + morphic.js | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/history.txt b/history.txt index 7d60971..d18452e 100755 --- a/history.txt +++ b/history.txt @@ -2261,3 +2261,4 @@ ______ 140813 ------ * Threads, Blocks: enable Zombiefication of JS-Functions +* Morphic: Fix #563 (Paste into Chrome), thanks, @Muon, for the hint! diff --git a/morphic.js b/morphic.js index 2bbdd4e..2a242f2 100644 --- a/morphic.js +++ b/morphic.js @@ -1035,7 +1035,7 @@ /*global window, HTMLCanvasElement, getMinimumFontHeight, FileReader, Audio, FileList, getBlurredShadowSupport*/ -var morphicVersion = '2014-July-29'; +var morphicVersion = '2014-August-13'; var modules = {}; // keep track of additional loaded modules var useBlurredShadows = getBlurredShadowSupport(); // check for Chrome-bug @@ -10321,7 +10321,8 @@ WorldMorph.prototype.initEventListeners = function () { } event.preventDefault(); } - if (event.ctrlKey || event.metaKey) { + if ((event.ctrlKey || event.metaKey) && + (event.keyIdentifier !== 'U+0056')) { // allow pasting-in event.preventDefault(); } }, -- cgit v1.3.1 From f70276f603a346f51bacb946fb6e615bb2a09f66 Mon Sep 17 00:00:00 2001 From: Gubolin Date: Fri, 12 Sep 2014 15:42:12 +0200 Subject: beautify xml --- .gitmodules | 3 +++ snap.html | 1 + store.js | 4 ++-- vkBeautify | 1 + 4 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .gitmodules create mode 160000 vkBeautify diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..c2d8927 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "vkBeautify"] + path = vkBeautify + url = https://github.com/vkiryukhin/vkBeautify diff --git a/snap.html b/snap.html index 904aba8..867f552 100755 --- a/snap.html +++ b/snap.html @@ -18,6 +18,7 @@ +