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

Commit f968a6c

Browse files
committed
using CommandsT instead of DSL in commands module
1 parent 247fb75 commit f968a6c

File tree

4 files changed

+456
-407
lines changed

4 files changed

+456
-407
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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ exports.setOptionImpl = function(option) {
3838
exports.resetOptionImpl = function(option) {
3939
return function(chart) {
4040
return function() {
41-
chart.setOption(option, true, false);
41+
try {
42+
chart.setOption(option, true, false);
43+
} catch (e) {
44+
console.log(e)
45+
}
4246
return {};
4347
};
4448
};

0 commit comments

Comments
 (0)