I am working on examples in chapter 8 of the Ruby on Rails tutorial and I am getting the above error on my pages and my popup menu is not working. Any ideas on how I can fix this?
!function( $ ) { $(function () { "use strict" $.support.transition = (function () { var thisBody = document.body || document.documentElement , thisStyle = thisBody.style , support = thisStyle.transition !== undefined || thisStyle.WebkitTransition !== undefined || thisStyle.MozTransition !== undefined || thisStyle.MsTransition !== undefined || thisStyle.OTransition !== undefined return support && { end: (function () { var transitionEnd = "TransitionEnd" if ( $.browser.webkit ) { Uncaught TypeError: Cannot read property 'webkit' of undefined transitionEnd = "webkitTransitionEnd" } else if ( $.browser.mozilla ) { transitionEnd = "transitionend" } else if ( $.browser.opera ) { transitionEnd = "oTransitionEnd" } return transitionEnd }()) } })() }) }(window.jQuery);
source share