Permalink
Commits on Jul 15, 2012
  1. Merge pull request #1 from isaacs/patch-1

    Fix `new` usage in README examples
    committed Jul 15, 2012
  2. Fix `new` usage in README examples

    
        x = new require('foo').Bar()
        // is like:
        x = (function () { var x = new require('foo'); return x.Bar()})()
    
    What you really want is something like:
    
        x = (function () { var x = require('foo').Bar; return new x()})()
    
    so you need parens.
    
    This works by accident, because `new` will return the ctor's
    returned object if it's an object, and routes.Router doesn't
    actually return an instance anyhow.  However, if it ever did,
    and it didn't use an instanceof check, then it would be a bug,
    because it would poop on the global object.
    isaacs committed Jul 15, 2012
  3. some unit tests

    committed Jul 15, 2012
  4. examples

    committed Jul 15, 2012
  5. cleaned up deps

    committed Jul 15, 2012
  6. first pass at routil-static

    committed Jul 15, 2012