1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-04 16:45:08 -05:00

Update badge handling.

This commit is contained in:
Lance Stout 2013-10-14 14:02:05 -07:00
parent 760af00f05
commit cc40e9e574

View File

@ -11,9 +11,7 @@ module.exports = HumanView.extend({
template: templates.body,
initialize: function () {
this.listenTo(app.state, 'change:title', this.handleTitle);
if (window.macgap) {
window.macgap.dock.badge = '';
}
app.desktop.updateBadge('');
},
events: {
'click a[href]': 'handleLinkClick',
@ -47,8 +45,6 @@ module.exports = HumanView.extend({
},
handleTitle: function (e) {
document.title = app.state.title;
if (window.macgap) {
window.macgap.dock.badge = app.state.badge;
}
app.desktop.updateBadge(app.state.badge);
}
});