mumuki-gobstones-runner 2.4.1 → 2.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/render/editor/editor.html +13 -4
- data/lib/version_hook.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94fc619f2b6796542a4db2237410814d10768d61385c97b4b02a287e89b07a5e
|
4
|
+
data.tar.gz: f21d46f395b03d2d7fd5832fb0a7fab09652b9a1be4b091eff12437d5b3531e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2142f02ca022f3cdb3ab5dec188590d2183aa6d228c9317d36a7c14ed2216e21cbbb8000dfe87566693b9d8481e7635be908c208d32e262d0854c6563999863f
|
7
|
+
data.tar.gz: f5edc2d22b0e2fcf4bd02a77c3a909ede29c6c9449aa7339ff0c17e6d84d49faf9f6c924e0b9f977e5e058e56b6ffc69a7a8fd4e9925f1302f37f421a20a1daf
|
@@ -189,7 +189,7 @@
|
|
189
189
|
});
|
190
190
|
|
191
191
|
const hasCustomToolbox = $('gs-toolbox').length;
|
192
|
-
if(!hasCustomToolbox)
|
192
|
+
if(!hasCustomToolbox) this.enableContextButton();
|
193
193
|
});
|
194
194
|
};
|
195
195
|
|
@@ -229,6 +229,15 @@
|
|
229
229
|
}
|
230
230
|
},
|
231
231
|
|
232
|
+
enableContextButton() {
|
233
|
+
if(typeof mumuki !== "undefined" && mumuki.kids && mumuki.assetsLoadedFor) {
|
234
|
+
return mumuki.assetsLoadedFor('editor');
|
235
|
+
} else {
|
236
|
+
return postpone(this.enableContextButton.bind(this));
|
237
|
+
}
|
238
|
+
|
239
|
+
},
|
240
|
+
|
232
241
|
getBlockly: function () {
|
233
242
|
return this.$.blocklyElement;
|
234
243
|
},
|
@@ -804,7 +813,7 @@
|
|
804
813
|
blockly.toolbox = { defaultToolbox: toolboxXml };
|
805
814
|
editor.setTeacherActions(blockly);
|
806
815
|
}).always(function () {
|
807
|
-
|
816
|
+
editor.enableContextButton();
|
808
817
|
});
|
809
818
|
}
|
810
819
|
});
|
@@ -1020,7 +1029,7 @@
|
|
1020
1029
|
if(this.configLoaded) this._createSwipeListener();
|
1021
1030
|
},
|
1022
1031
|
_createSwipeListener: function () {
|
1023
|
-
if(typeof Hammer === "undefined") return postpone(this._createSwipeListener);
|
1032
|
+
if(typeof Hammer === "undefined") return postpone(this._createSwipeListener.bind(this));
|
1024
1033
|
const $swipeListenerArea = $('.mu-initial-state gs-board')[0];
|
1025
1034
|
const hammer = new Hammer($swipeListenerArea);
|
1026
1035
|
hammer.get('swipe').set({direction: Hammer.DIRECTION_ALL});
|
@@ -1057,7 +1066,7 @@
|
|
1057
1066
|
|
1058
1067
|
_createKeyboardConfig: function () {
|
1059
1068
|
if(typeof GobstonesKeyboard === 'undefined') GobstonesKeyboard = {};
|
1060
|
-
if(typeof Hammer === "undefined") return postpone(this._createKeyboardConfig);
|
1069
|
+
if(typeof Hammer === "undefined") return postpone(this._createKeyboardConfig.bind(this));
|
1061
1070
|
GobstonesKeyboard.keyboardMap = {
|
1062
1071
|
[Hammer.DIRECTION_LEFT]: 37,
|
1063
1072
|
[Hammer.DIRECTION_UP]: 38,
|
data/lib/version_hook.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumuki-gobstones-runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Alfonso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mumukit
|
@@ -209,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
209
209
|
- !ruby/object:Gem::Version
|
210
210
|
version: '0'
|
211
211
|
requirements: []
|
212
|
-
rubygems_version: 3.0.
|
212
|
+
rubygems_version: 3.0.6
|
213
213
|
signing_key:
|
214
214
|
specification_version: 4
|
215
215
|
summary: Gobstones Runner for Mumuki
|