These are chat archives for canjs/canjs

15th
Oct 2015
reno1979
@reno1979
Oct 15 2015 07:09
hello all
Can anyone tell me why the canjs model cache plugin is become deprecated
Jeroen Cornelissen
@jeroencornelissen
Oct 15 2015 09:57
Is a can.Component only initialized if it's inserted through a stache template?
I have a <my-component> tag in my legacy html but it's not rendered as my can.Component.
reno1979
@reno1979
Oct 15 2015 09:58
perhaps use autorender?
because I believe you are right, my custom tags only get used when they are detected when rendering a template
Jeroen Cornelissen
@jeroencornelissen
Oct 15 2015 10:09
What do you mean autorender?
Jeroen Cornelissen
@jeroencornelissen
Oct 15 2015 10:10
Here is a fiddle of what I'm doing: http://jsfiddle.net/xbau2sxy/
reno1979
@reno1979
Oct 15 2015 10:12
works as expected
the html is not being investigated bi the component to look for that custom tag
Jeroen Cornelissen
@jeroencornelissen
Oct 15 2015 10:13
Is it possible to make that work?
reno1979
@reno1979
Oct 15 2015 10:19
Not that I know
Mihai Fantana
@fantanamihai
Oct 15 2015 10:52
@alexisabril @matthewp thanks for answer. Yeah, I was referring to e.g. can.Deferred vs $.Deferred.
I saw there are different implementations in can for 'each', 'extend', 'ajax' .
I think at the base, these functions have the same jquery functionality, but with can support added (Map, compute ).
Is this true?
if so, than should one use can.each, can.extend, can.ajax instead of jQuery ones, just to be sure arguments are properly handled?
Jeroen Cornelissen
@jeroencornelissen
Oct 15 2015 11:35
@reno1979 Guess I’ll have to make a jQuery Widget then :worried:
reno1979
@reno1979
Oct 15 2015 12:26
@jeroencornelissen Too bad, I thought the autorender would help you