These are chat archives for canjs/canjs

16th
Sep 2015
kiwi1342
@kiwi1342
Sep 16 2015 08:30
@Luanre thx
hi, one question: is this
var VM = can.Map.extend({
   init: function () {
      this.attr( 'myTest', new Model.List() )
   }})
equal to
kiwi1342
@kiwi1342
Sep 16 2015 08:36
var VM = can.Map.extend({
     myTest: new Model.List() 
})
?
Andrei Balmus
@abalmush
Sep 16 2015 08:38
I think result will be thesame
kiwi1342
@kiwi1342
Sep 16 2015 08:41
yeah I think so too. I was just wondering if there is a specific reason behind declaring instance properties inside the init if they are not coming from constructor's arguments