lauripiispanen / angular-bacon

Angular-bacon.js bindings
MIT License
146 stars 16 forks source link

fix bug that caused the library to crash when scope is destroyed. #15

Closed kristw closed 9 years ago

kristw commented 9 years ago

Fix bug that caused the library to crash when scope is destroyed.

You can run the unit test to test it. The original code will throw this

rootScope:: ends the stream when the is : failed …
  TypeError: 'undefined' is not a function (evaluating 'this.unsubAll()') (2)