Permalink
Browse files

Merge pull request #1543 from koenpunt/fix-originial

fixed typo (originial => original), only test for originalEvent once.
  • Loading branch information...
koenpunt committed Sep 13, 2013
2 parents 7b6fc0c + 674506e commit ece04c45aa2a7835df75b7dd373091c842eff48d
Showing with 1 addition and 1 deletion.
  1. +1 −1 coffee/chosen.jquery.coffee
@@ -135,7 +135,7 @@ class Chosen extends AbstractChosen
this.results_reset(evt) if evt.target.nodeName is "ABBR" and not @is_disabled
search_results_mousewheel: (evt) ->
- delta = -evt.originalEvent?.wheelDelta or evt.originialEvent?.detail
+ delta = -evt.originalEvent.wheelDelta or evt.originalEvent.detail if evt.originalEvent
if delta?
evt.preventDefault()
delta = delta * 40 if evt.type is 'DOMMouseScroll'

0 comments on commit ece04c4

Please sign in to comment.