Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 4866c2c

Browse files
authored
Merge pull request #49 from cryogenian/commands
Commands
2 parents 409850d + 59eb6d7 commit 4866c2c

File tree

4 files changed

+459
-409
lines changed

4 files changed

+459
-409
lines changed

example/src/Line.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ type Accum =
6464
dataStream
6565
e i. Accum Signal (Eff (random RANDOM|e) (DSL' (items I|i)))
6666
dataStream start =
67-
accumStream ~> map (E.itemsDSL <<< _.values)
67+
accumStream ~> map (void <<< E.itemsDSL <<< _.values)
6868
where
6969
accumStream =
7070
foldp foldFn (pure start) (every 2000.0)

src/ECharts/Chart.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,23 @@ exports.registerTheme = function(name) {
2929
exports.setOptionImpl = function(option) {
3030
return function(chart) {
3131
return function() {
32-
chart.setOption(option, false, false);
33-
return {};
32+
try {
33+
chart.setOption(option, false, false);
34+
} catch (e) {
35+
console.error(e);
36+
}
3437
};
3538
};
3639
};
3740

3841
exports.resetOptionImpl = function(option) {
3942
return function(chart) {
4043
return function() {
41-
chart.setOption(option, true, false);
42-
return {};
44+
try {
45+
chart.setOption(option, true, false);
46+
} catch (e) {
47+
console.error(e);
48+
}
4349
};
4450
};
4551
};

0 commit comments

Comments
 (0)