From 6dafe4b45f30a8a44463d058b7c9fa08e3a56665 Mon Sep 17 00:00:00 2001 From: Bijosh T J Date: Thu, 10 Dec 2015 11:56:38 +0530 Subject: [PATCH] reset superview property of view on removeFromSuperview --- src/ui/View.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/View.js b/src/ui/View.js index 3f450a80..3cedd640 100644 --- a/src/ui/View.js +++ b/src/ui/View.js @@ -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); } };