cherifGsoul on document-inserted-removed-can6
Update after review (compare)
cherifGsoul on theme-3.0.0-pre.5
cherifGsoul on master
Update bit-doc-html-canjs (#544… (compare)
cherifGsoul on theme-3.0.0-pre.5
Update bit-doc-html-canjs Upda… (compare)
cherifGsoul on update-api-page
cherifGsoul on master
Update API page (#5432) * Upda… (compare)
greenkeeper[bot] on core-js-3.5.0
chore(package): update core-js … (compare)
greenkeeper[bot] on can-observable-mixin-1.0.7
fix(package): update can-observ… (compare)
cherifGsoul on update-infrastructure-page
cherifGsoul on master
Update infrastructure page with… (compare)
can.Component.extend({
tag: 'feature-icon',
template: can.view('/modules/components/feature-icon/feature-icon.stache'),
viewModel: can.Map.extend({
hasMedia: false
}),
events: {
'{viewModel} hasMedia': function () {
debugger;
}
}
});
var Model = can.Map.extend({
define: {
hasMedia: {
type: 'boolean',
set: function () {
debugger;
}
}
}
});
can.Component.extend({
tag: 'feature-icon',
template: can.view('/modules/components/feature-icon/feature-icon.stache'),
viewModel: Model
});
okay - I have a component:
<feature-icon type="article" types="articles"
isActive="{{isActive}}"
hasMedia="{{hasMediaContent('articles')}}"
profilesURL="options.profilesURL"></feature-icon>
with the component defined as:
var Model = can.Map.extend({
define: {
hasMedia: {
type: 'boolean',
set: function () {
debugger;
}
}
}
});
can.Component.extend({
tag: 'feature-icon',
template: can.view('/modules/components/feature-icon/feature-icon.stache'),
viewModel: Model
});
The debugger is never called
<feature-icon type="article" types="articles"
is-active="{{isActive}}"
has-media="{{hasMediaContent('articles')}}"
profiles-URL="options.profilesURL"></feature-icon>