gobstones-blockly 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/htmls/gs-element-blockly.html +9 -2
- data/lib/gobstones/blockly/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2068974de8a97b4a7873a2e18fd99811d6e13e7f9a387739f02b44aba8468f2
|
4
|
+
data.tar.gz: 4616a462fa78fdf3ec572a232007e438c4a749f7c5478382c4c773d7e2f31c0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6eaf3699011663c610228fb139e38032bd484b352c0a842a58651f8b1574f2d7bcf2f93650f5223ba4785bca01a139cc688fd5bbfded809ab7aa95552fd4707
|
7
|
+
data.tar.gz: 15f33263b6be825c896b070f4748d5b88c3d3589e8a2d9ba247beb06169bfdefe3cfd0af61bf5f73e2a5256b1f2b00d47e2c98fac31cf43394e47d0a05b1a5ba
|
@@ -5998,6 +5998,8 @@ Blockly.ErrorInforming.CssContent = [
|
|
5998
5998
|
const primitiveProcedures = this._getPrimitiveNames(this.primitiveProcedures);
|
5999
5999
|
const primitiveFunctions = this._getPrimitiveNames(this.primitiveFunctions);
|
6000
6000
|
|
6001
|
+
this.setDefaultToolbox(this.toolbox && this.toolbox.defaultToolbox);
|
6002
|
+
|
6001
6003
|
let tree = this._defaultToolboxTree();
|
6002
6004
|
let toolbox = [];
|
6003
6005
|
|
@@ -6404,9 +6406,14 @@ Blockly.ErrorInforming.CssContent = [
|
|
6404
6406
|
},
|
6405
6407
|
|
6406
6408
|
setDefaultToolbox: function(xml) {
|
6407
|
-
|
6409
|
+
if (xml && !this._toolboxBackup)
|
6410
|
+
this._toolboxBackup = this.$$('#toolbox').innerHTML;
|
6411
|
+
|
6412
|
+
const newXml = xml || this._toolboxBackup;
|
6413
|
+
if (!newXml) return;
|
6408
6414
|
|
6409
|
-
|
6415
|
+
this.$$('#toolbox').innerHTML = newXml;
|
6416
|
+
const toolboxXml = `<xml>${newXml}</xml>`;
|
6410
6417
|
this.workspace.updateToolbox(toolboxXml);
|
6411
6418
|
},
|
6412
6419
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gobstones-blockly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Alfonso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|