destroyedInstance
do? I expected that it would remove my item from the list, but it doesn’t.removeAllItems
function.destroy
($click)=“handler()”
DefineMap
, then you want `set: http://canjs.com/doc/can-define/map/map.prototype.set.html
{{#../teams.getById(homeTeamId)}}
how does that work? besides the fact that I only thought possible to use {{#keyword}}
with a reduced number of words there is also a parametric way of choosing that keyword? what about closing that tag, isn’t that necessary? thanks
Hi!
I don't know if I'm missing something or there is a memory leak in CanJs 3.
Following these steps anyone can reproduce the problem (I'm using Google Chrome):
Does anyone know what alternative I have to the change event in canjs 3?
Say I have a list of foo's on my viewModel, and I want to listen to a change on any of the list "value" properties. I.e. how do I write this in canjs 3:
"{viewModel.foos} change" : function ( foos, event, prop ) {
if ( prop.indexOf( "value" !== -1 )) { ... }
}