Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Is this a safe strategy for translating can.Map/can.Model attribute names prior to init()?

$
0
0
Haven't tried this but I think you should be able to do this:
  1. define: {
  2.     products: {
  3.       type: Product.parseModels
  4.     }
  5. }
It should cast to Product.List and use your translate logic in parseModel too.


Viewing all articles
Browse latest Browse all 3491

Trending Articles