Prototype and jasmine: element.dispatchEvent is not a function
Posted on 2011-02-15 17:56 勇敢的鸵鸟 阅读(840) 评论(0) 编辑 收藏 举报http://stackoverflow.com/questions/980697/element-dispatchevent-is-not-a-function-js-error-caught-in-firebug-of-ff3-0 I'm using jasmine for a rail project. Prototype and jQuery are both loaded by jasmine. To fix it, jQuery.noConflict() need to be called before using $, and after included jquery.js. I added it on a namespace js file. You'd better added jquery js in jasmine.yml manually, so that it is linked in before your own js files (under test).