These are chat archives for canjs/canjs

31st
Aug 2015
Paulius
@paulius005
Aug 31 2015 19:07
So if I have a compute that just returns a function. Is there a way to make it destroy its cache so it can keep calling the function? Running this.attr('change'); has been the only way I have been able to get my validation to work. Otherwise calling allErrors doesn't actually go into _errorsArray
allErrors: can.compute(function() {
      return this._errorsArray();
    }),
    _errorsArray: function(attributes) {
       this.attr('change');
Mohamed Cherif Bouchelaghem
@cherifGsoul
Aug 31 2015 19:11
@paulius005 is this in a can.Map
Paulius
@paulius005
Aug 31 2015 19:11
yep
v2.0.0pre something
Mohamed Cherif Bouchelaghem
@cherifGsoul
Aug 31 2015 19:12
2.3.0pre?
Paulius
@paulius005
Aug 31 2015 19:13
2.0.0
Mohamed Cherif Bouchelaghem
@cherifGsoul
Aug 31 2015 19:13
emm an old version!! I think its was a bug to define can.compute in a map
Paulius
@paulius005
Aug 31 2015 19:14
Yeah, we've spent most of the quarter trying to update. We're making great progress, now we're running into heap size issues while building. We're just hoping we don't have to upgrade steal before finishing the canjs update
Mohamed Cherif Bouchelaghem
@cherifGsoul
Aug 31 2015 19:23
the compute problem was corrected in 2.2.0I gues
Paulius
@paulius005
Aug 31 2015 20:00
thanks!
attr('change') it is