Closed yields closed 10 years ago
why? i think there's nothing wrong with
var proto = require('model/lib/proto');
...
since require
caches the lookup you always receive the same object.
yeah sure, but i think it's much cleaner.
var proto = require('express/lib/application');
var proto = require('express').application;
agree that reaching into the dir structure of the component is bad, since its private.
curious whats the extending use case? shouldn't you just use .use()
?
hm, mainly overriding .url()
, doing that in a plugin will be a PITA imho.
shouldnt need to do this, can just edit Model.url
and Model.prototype.url
directly
i want to extend those.