stephenmcd/django-socketio — pull request #32 by codekoala (2012-07-19 21:55:46+00:00)
Title: Handle the jQuery.io = this.io when jQuery exists but is undefined

I'm using `django-grappelli`, and it moves jQuery from `this.jQuery` to `this.django.jQuery`. The `this.jQuery` variable still seems to be around, but it's `undefined`. There was an error with `jQuery.io = this.io`, because you can't set attributes on undefined objects. Because of this error, the rest of the script was not processed, causing the sockets to not work at all.

This is a little workaround for my particular scenario, but it also handles the error gracefully.