Medium / matador

an MVC framework for Node
http://medium.github.io/matador
Other
604 stars 41 forks source link

Using prototype as inheritance mechanism #116

Closed vinibaggio closed 11 years ago

vinibaggio commented 11 years ago

Instead of using the "methods" to extend the basic controller, using just prototype directly. I tried to make integration tests for these, but was no trivial task.

nicks commented 11 years ago

i guess the only reason to use methods() is if you want to use this.supr?

in any case, LGTM

vinibaggio commented 11 years ago

Dan mentioned we could use node's inheritance to do this, but I didn't finish doing it last night. I am finishing it now and will push to this same branch.

vinibaggio commented 11 years ago

@nicks Done, I've added also a little help message when invoking matador.js w/o arguments. Please let me know what you think.

dpup commented 11 years ago

Sweet, LG

Node exposes the super through Constructor.super_

nicks commented 11 years ago

w00t

vinibaggio commented 11 years ago

Thanks! :+1: