Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-7226] Complete Ti.UI.WebView implementation #1288

Merged
merged 6 commits into from Jan 27, 2012
Merged

[TIMOB-7226] Complete Ti.UI.WebView implementation #1288

merged 6 commits into from Jan 27, 2012

Conversation

cb1kenobi
Copy link
Contributor

No description provided.

@@ -37,7 +41,8 @@ define("Ti/UI/View",
l = this.children.length;
for (; i < l; i++) {
if (this.children[i] === view) {
this.children.splice(i, 1);
l = this.children.splice(i, 1);
l[0]._setParent();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you intend for the parent to be set to undefined?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, when you do a Ti.UI.createView(), the _parent is undefined, so when you remove() a child, it's _parent should be restored to undefined.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, didn't see the line skip...thought this was part of _insertAt().

@nebrius
Copy link
Contributor

nebrius commented Jan 27, 2012

Code reviewed and tested. Request accepted.

nebrius added a commit that referenced this pull request Jan 27, 2012
[TIMOB-7226] Complete Ti.UI.WebView implementation
@nebrius nebrius merged commit 6104e9c into tidev:master Jan 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants