Fix issue with Mithril 0.2.0 (invalid m.route call)

This commit is contained in:
Toby Zerner 2015-05-04 10:30:06 +09:30
parent d9cde4a4e3
commit fbcada96a9

View File

@ -120,7 +120,7 @@ export default class DiscussionList extends Component {
href: startUser ? app.route('user', { username: startUser.username() }) : undefined, href: startUser ? app.route('user', { username: startUser.username() }) : undefined,
config: function(element, isInitialized, context) { config: function(element, isInitialized, context) {
$(element).tooltip({ placement: 'right' }) $(element).tooltip({ placement: 'right' })
m.route.call(this, element) m.route.apply(this, arguments)
}, },
title: 'Started by '+(startUser ? startUser.username() : '[deleted]')+' '+humanTime(discussion.startTime()) title: 'Started by '+(startUser ? startUser.username() : '[deleted]')+' '+humanTime(discussion.startTime())
}, [ }, [