These are chat archives for canjs/canjs

17th
Sep 2015
dylanrtt
@dylanrtt
Sep 17 2015 00:02

@kiwi1342 your 2nd example, myTest would refer to the same list in all instances of VM whereas your 1st example would create a separate list for each instance of VM. If you want separate lists, I would use the define plugin... here is basically your 1st example:

define: {
  myTest: {
    Value: Model.List
  }
}

using init just gives you more control over how your properties are defined but I've never found a need for it with the define plugin covering a so many use cases