velesin/jasmine-jquery — Issue #41: TypeError: Cannot call method 'cleanUp' of undefined
Author: Unpakt
Created: 2011-12-01 15:15:46+00:00
State: open

Jasmine 1.1.2
Head of jasmine-jquery on Github: 7fcfa635a8a7281cc3b16513084a02f1020c0c43

TypeError: Cannot call method 'cleanUp' of undefined
at [object Object]. (http://localhost:8888/__spec__/helpers/jasmine-jquery.js:288:27)
at [object Object].execute (http://localhost:8888/__JASMINE_ROOT__/jasmine.js:1001:15)
at [object Object].next_ (http://localhost:8888/__JASMINE_ROOT__/jasmine.js:1790:31)
at http://localhost:8888/__JASMINE_ROOT__/jasmine.js:1780:18

--

Shim in place:

84c84
< jasmine.Fixtures.prototype.getFixtureHtml_ = function(url) {
---
> jasmine.Fixtures.prototype.getFixtureHtml_ = function(url) {
226c226
<
---
>
287,289c287
< if(jasmine.JQuery.events !== undefined){
< jasmine.JQuery.events.cleanUp();
< }
---
> jasmine.JQuery.events.cleanUp();