These are chat archives for canjs/canjs

25th
Aug 2015
Justin Meyer
@justinbmeyer
Aug 25 2015 13:56
@cherifGsoul a behavior is a function
@halcyonandon granular how? (yslow has worked for me in the past)
Mohamed Cherif Bouchelaghem
@cherifGsoul
Aug 25 2015 14:24
@justinbmeyer yes
Mohamed Cherif Bouchelaghem
@cherifGsoul
Aug 25 2015 18:09
@justinbmeyer the behavior overwrite dosent work
```Uncaught Error: Could not get any raw data while converting using .models
Adam L Barrett
@BigAB
Aug 25 2015 19:49

Is there anything this is doing:

var checkoutFetched = can.Deferred();
Checkout.findOne({}, function success(checkoutModel) {
  checkoutFetched.resolve(checkoutModel);
}, function fail(response) {
  checkoutFetched.reject(response);
});

That wouldn't be the same as this:

var checkoutFetched = Checkout.findOne({});

... seems the same to me, am I missing something?

David Luecke
@daffl
Aug 25 2015 19:49
No, that is completely the same
Adam L Barrett
@BigAB
Aug 25 2015 19:51
Great, thanks for the verification/validation