Permalink
Browse files

Upgrade rr

  • Loading branch information...
chenglou committed Nov 22, 2017
1 parent f0718ef commit afbb8353eef83feec77f86ccfa1d389ebd64526e
Showing with 5 additions and 4 deletions.
  1. +1 −0 bsconfig.json
  2. +2 −2 package.json
  3. +1 −1 src/UI/Builder.re
  4. +1 −1 src/UI/ColorSlider.re
View
@@ -9,4 +9,5 @@
"subdirs": true,
},
],
"refmt": 2,
}
View
@@ -6,11 +6,11 @@
"gifencoder": "^1.0.6",
"react": "^15.5.4",
"react-dom": "^15.5.4",
"reason-react": "^0.2.4",
"reason-react": "^0.3.0",
"twit": "^2.2.5"
},
"devDependencies": {
"bs-platform": "^1.9.2",
"bs-platform": "^2.1.0",
"webpack": "^1.14.0"
},
"scripts": {
View
@@ -3,7 +3,7 @@ let se = ReasonReact.stringToElement;
external refToCanvas : Dom.element => Canvas.canvasElement = "%identity";
let refToContext canv =>
switch (Js.Null.to_opt canv) {
switch (Js.Nullable.to_opt canv) {
| Some canv => Some (Canvas.getContext (refToCanvas canv))
| None => None
};
View
@@ -54,7 +54,7 @@ let (>>=) a b =>
| None => None
};
let setCanvasRef r {ReasonReact.state: state} => state.canvas := Js.Null.to_opt r;
let setCanvasRef r {ReasonReact.state: state} => state.canvas := Js.Nullable.to_opt r;
let make ::width ::height ::value ::onChange _children => {
...component,

0 comments on commit afbb835

Please sign in to comment.