documentcloud/backbone — pull request #840 by adomokos (2012-01-06 04:26:23+00:00)
Title: Fixing Backbone.js under jasmine-node by changing the way the immediate function is invoked

When I tried to use Backbone.js with [jasmine-node](https://github.com/mhevery/jasmine-node) I received this error:

Message:
TypeError: undefined is not a function
Stacktrace:
at [object Object].delegateEvents (/Users/adomokos/Programming/JavaScript/katas/tictactoe/node_modules/backbone/backbone.js:956:7)
at [object Object]. (/Users/adomokos/Programming/JavaScript/katas/tictactoe/node_modules/backbone/backbone.js:883:10)
at new (/Users/adomokos/Programming/JavaScript/katas/tictactoe/node_modules/backbone/backbone.js:1103:41)

Making this change took care of this error.

All the tests are passing.