resthub / resthub-backbone-stack

RESThub Backbone.js stack
http://resthub.org/docs/backbone/
Other
56 stars 26 forks source link

add prefix for views cid when property __name__ provided #150

Closed jripault closed 10 years ago

jripault commented 11 years ago

Add the possibility to prefix the cid of view to facilitate debugging. Pass the property name in the constructor's options.

loicfrering commented 11 years ago

I'm asking myself if this behavior should be optional or not, what do you think?

jripault commented 11 years ago

I think it should be mandatory if we could prefix models and collections too because it would allow to clearly debug everything. But I didn't find a good way to do it as Resthub doesn't propose Model and Collection abstraction. So I'd stick to 'optional' for now

sdeleuze commented 11 years ago

I am ok with mandatory. Can't we do some monkey patching to get this behaviour in Model and Collection too ?

loicfrering commented 10 years ago

Thanks!