cherifGsoul on upgrade-docs-html-canjs
cherifGsoul on master
Upgrade the site theme for new … (compare)
cherifGsoul on upgrade-docs-html-canjs
Upgrade the site theme for new … (compare)
isActive: function (ctr) {
return this.playerRow.player.status.toLowerCase() === 'active';
},
The first time it is called, all is well. The second time it is called, the value of this.playerRow has changed. That is while parsing the same stache file.
{{^if isActive('1')}}
and the second call <a class="name {{#if isActive('2')}}expansion{{/if}}”
this.attr(‘playerRow.player.status’)
playerRow
changes it won't
.attr()
sets up a listener internally
isActive
function