1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-26 03:02:25 -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, template: templates.body,
initialize: function () { initialize: function () {
this.listenTo(app.state, 'change:title', this.handleTitle); this.listenTo(app.state, 'change:title', this.handleTitle);
if (window.macgap) { app.desktop.updateBadge('');
window.macgap.dock.badge = '';
}
}, },
events: { events: {
'click a[href]': 'handleLinkClick', 'click a[href]': 'handleLinkClick',
@ -47,8 +45,6 @@ module.exports = HumanView.extend({
}, },
handleTitle: function (e) { handleTitle: function (e) {
document.title = app.state.title; document.title = app.state.title;
if (window.macgap) { app.desktop.updateBadge(app.state.badge);
window.macgap.dock.badge = app.state.badge;
}
} }
}); });