Skip to content

Commit

Permalink
Merge pull request #29 from freak4pc/patch-1
Browse files Browse the repository at this point in the history
Allow usage of rx.disposeBag alongside rx_disposeBag
  • Loading branch information
ashfurrow authored Jan 2, 2017
2 parents b120679 + dd3ce4b commit a578b94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Changelog
Current master
--------------

- Nothing yet!
- Allow usage of rx.disposeBag alongside rx_disposeBag ([#29](https://github.com/RxSwiftCommunity/NSObject-Rx/pull/29)) - [@freak4pc](https://github.com/freak4pc)

2.0.0
-----
Expand Down
6 changes: 6 additions & 0 deletions NSObject+Rx.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,9 @@ public extension NSObject {
}
}
}

extension Reactive where Base: NSObject {
var disposeBag: DisposeBag {
return base.rx_disposeBag
}
}

0 comments on commit a578b94

Please sign in to comment.