Git Product home page Git Product logo

examples_ocaml_vdom's People

Contributors

pveber avatar slegrand45 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

examples_ocaml_vdom's Issues

Does not compile, error with js_of_ocaml.ppx and derive.json

I've tried to compile your todomvc example under OCaml 4.09.1 with a recent js_of_ocaml but it did not work.
I had to rename js_of_ocaml.ppx to js_of_ocaml-ppx in build.sh, but even after that I got this error:

master/home/pad/work/EXPERIMENTS/todomvc/ocaml_vdom/todomvc $ ./build.sh 
File "todomvc.ml", line 67, characters 32-43:
67 |     Deriving_Json.from_string [%derive.json: t] s
                                     ^^^^^^^^^^^
Error: Deriver json does not support inline notation
js_of_ocaml: Error: Sys_error("todomvc.byte: No such file or directory")
Raised by primitive operation at file "stdlib.ml", line 398, characters 28-54
Called from file "stdlib.ml" (inlined), line 406, characters 2-47
Called from file "compiler/bin-js_of_ocaml/compile.ml", line 224, characters 19-33
Called from file "cmdliner_term.ml", line 25, characters 19-24
Called from file "cmdliner.ml", line 117, characters 32-39
Called from file "cmdliner.ml", line 147, characters 18-36
Called from file "cmdliner.ml", line 265, characters 22-48
Called from file "compiler/bin-js_of_ocaml/js_of_ocaml.ml", line 48, characters 4-225

TodoMVC: Escape key with Firefox

When a todo entry is edited, the user must be able to press the escape key in order to cancel the modifications.

With Firefox 50 on FreeBSD, the escape key is correctly detected (the which field is equal to 27) but the input is never reset to the backup value. If the escape key is replaced by the "a" key for instance, it works ok.

With Chromium 54 on FreeBSD, the escape key works correctly. Nonetheless, it seems that Chromium fires two events: a keypress followed by a blur. While Firefox fires only the keypress event.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.