strongloop / strong-remoting

Communicate between objects in servers, mobile apps, and other servers.
www.strongloop.com
Other
105 stars 93 forks source link

Extract ContextBase and ctx.getScope() #278

Closed bajtos closed 8 years ago

bajtos commented 8 years ago

Create ContextBase - a base class for all Context objects where we can put methods shared by all contexts.

Move remotes.getScope to ContextBase.prototype.getScope as it belongs there more naturally and will make it easier to access scope in hooks that can access the ctx object only.

Connect to strongloop-internal/scrum-loopback#729

@raymondfeng @ritch please review

ritch commented 8 years ago

LGTM... meant to do this quite a while ago. :+1: