Skip to content

Commit be4f8d6

Browse files
committed
Fix the /enyo build with latest node
1 parent e3c21fc commit be4f8d6

File tree

3 files changed

+4859
-16
lines changed

3 files changed

+4859
-16
lines changed

www/enyo/Makefile

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@ DISTZIP=radare2-webui-enyo-$(VERSION).zip
44

55
build:
66
npm install
7-
$(shell npm bin)/gulp
7+
npx gulp
88

99
run: build
1010
r2 -q -e http.ui=enyo -e http.sandbox=0 -e http.root=$(PWD)/../../dist -c=H /bin/ls
1111

1212
watch:
13-
$(shell npm bin)/gulp watch
14-
13+
npx gulp watch
1514

1615
dist:
1716
rm -f $(DISTZIP)

www/enyo/js/script.js

+14-13
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,22 @@ enyo.kind({
33
kind: 'Scroller',
44
style: 'background-color:#c0c0c0',
55
clear: function() {
6-
with (this.$.input) { setContent(value = ''); render(); };
6+
const field = this.$.input;
7+
field.setContent(value = '');
8+
field.render();
79
},
810
demo: function() {
9-
with (this.$.input) {
10-
setContent(value = [
11-
'r2.disassemble (0, "9090", function(text) {',
12-
' show (text)',
13-
' show ()',
14-
' r2.assemble (0, "mov eax, 33", function (text) {',
15-
' show (text);',
16-
' });',
17-
' show (r2)',
18-
'});'].join('\n'));
19-
render();
20-
}
11+
const field = this.$.input;
12+
field.setContent(value = [
13+
'r2.disassemble (0, "9090", function(text) {',
14+
' show (text)',
15+
' show ()',
16+
' r2.assemble (0, "mov eax, 33", function (text) {',
17+
' show (text);',
18+
' });',
19+
' show (r2)',
20+
'});'].join('\n'));
21+
field.render();
2122
},
2223
run: function() {
2324
var code = this.$.input.value;

0 commit comments

Comments
 (0)