This repository was archived by the owner on May 29, 2019. It is now read-only.

Description
There is a subtle bug in AngularJS jqLite which I've discovered while investigating #710.
If you try to unbind an event that wasn't previously bound (and you pass in both type and fn) AngularJS will fail with Cannot read property 'indexOf' of undefined... jQuery behaves differently and it is more forgiving. Just including jQuery makes the issue go away. This is why our unit-test didn't catch it. Opened a PR angular/angular.js#3465 to correct this.
But before it gets corrected in AngularJS we need a work-arround of some sort.