Skip to content
Commits on May 30, 2011
  1. added demo for the new, real, API

    committed May 30, 2011
  2. added prettify.js

    committed May 30, 2011
    we're going to use this for the nicer API demo to come
  3. add a real API

    committed May 30, 2011
    while still a long way off the node.js file API, this shows how, with
    the tools available, we can make a nice JS-API that maps the somewhat
    ugly Java-Interface (why can't I pass around callbacks directly?) to a
    really nice JS one.
    
      var reader = new FileReader();
      reader.readFile('/etc/passwd', function(){
       // do stuff
      });
    
    you can't have it nicer
  4. allow invoker to set the name of the caller-marshaler

    committed May 30, 2011
    window.caller seems way too risky for me, so let's just make this
    configurable
  5. increment version :-)

    committed May 30, 2011
  6. work around a marshaling issue with webkit

    committed May 30, 2011
    webkit somehow doesn't like an array passed in from java. I will have to
    investigate this one a bit, but for this proof of concept, one argument
    is fine
  7. reading any local file :-)

    committed May 30, 2011
  8. initial readme file

    committed May 30, 2011
  9. deploy to demo dir by default

    committed May 30, 2011
  10. added little demo page

    committed May 30, 2011
    demonstrating how the callback mechanism works using window.caller which
    gives us a configurable this-pointer. This isn't as good as a closure,
    unfortunately, but it has to do.
  11. proof-of concept callback handling

    committed May 30, 2011
    I would have loved to get closures to work, but, alas, I don't. Live
    Connect was made in the pre-crockford days. But with a bit of magic
    (which, I guess, is a fitting tool for fighting zombies), I can still do
    it
  12. correctly configure classpath

    committed May 30, 2011
  13. initial import

    committed May 30, 2011
Something went wrong with that request. Please try again.