aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/main.js
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2016-12-14 11:07:04 +0100
committerNoah Loomans <noahloomans@gmail.com>2016-12-14 11:07:04 +0100
commit670976458b5375d27dc525f66b8faa3dc78e799b (patch)
treea90864d2d549efc6a5bce1b4cab99ffb60676f6d /public/javascripts/main.js
parentcc60c30509e5b084f2b0c01ba22a6e43a446887f (diff)
extend EventEmitter instaid of property
Diffstat (limited to 'public/javascripts/main.js')
-rw-r--r--public/javascripts/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/javascripts/main.js b/public/javascripts/main.js
index bd28475..6e0796c 100644
--- a/public/javascripts/main.js
+++ b/public/javascripts/main.js
@@ -8,12 +8,12 @@ const state = {}
frontpage.show()
weekSelector.updateCurrentWeek()
-search.events.on('search', function (selectedItem) {
+search.on('search', function (selectedItem) {
state.selectedItem = selectedItem
schedule.viewItem(weekSelector.getSelectedWeek(), state.selectedItem)
})
-weekSelector.events.on('weekChanged', function (newWeek) {
+weekSelector.on('weekChanged', function (newWeek) {
schedule.viewItem(newWeek, state.selectedItem)
})