Skip to content

Commit

Permalink
Merged in fix-update-view-property-on-removeFromSuperview (pull request
Browse files Browse the repository at this point in the history
#11)

reset superview property of view on removeFromSuperview
  • Loading branch information
Jishnu Mohan committed Dec 11, 2015
2 parents e99ec27 + 6dafe4b commit 50bcee4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ui/View.js
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,9 @@ var View = exports = Class(Emitter, function () {
this.removeFromSuperview = function () {
var superview = this.__view.getSuperview();
if (superview) {
this.updateOpts({
superview: null
});
superview.removeSubview(this);
}
};
Expand Down

0 comments on commit 50bcee4

Please sign in to comment.