Still quite new with CanJS, I would like to know how custom behaviors are instantiated.
I tried something :
- I made a custom behavior, with some parameters,
- put it in a DefineMap,
- tried to instantiated it twice (see the JSBin example for concrete informations),
So far so good, but it seems that both defineMap.connection objects are pointing to the same behavior obj ...
If someone knows how it works, I would be glad to understand,
Is there a way to achieve this without adding code duplication ?