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-9345] Fixed overriding Ti namespace by the webview bridge. #2310

Merged
merged 1 commit into from Jun 2, 2012
Merged

[TIMOB-9345] Fixed overriding Ti namespace by the webview bridge. #2310

merged 1 commit into from Jun 2, 2012

Conversation

cb1kenobi
Copy link
Contributor

No description provided.

@@ -3,10 +3,10 @@ var a, b,
p = w.parent,
u = w.onunload;

if(p && p.Ti){
if (!Ti && !Titanium && p && p.Ti) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there ever a time where Ti will be defined but Titanium won't, or vice versa? I'm wondering if it's redundant.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's a safety precaution. Bad things happen if either Ti or Titanium gets redefined.

@nebrius
Copy link
Contributor

nebrius commented Jun 2, 2012

Code reviewed and tested. Request approved

@nebrius nebrius closed this Jun 2, 2012
@nebrius nebrius reopened this Jun 2, 2012
nebrius added a commit that referenced this pull request Jun 2, 2012
[TIMOB-9345] Fixed overriding Ti namespace by the webview bridge.
@nebrius nebrius merged commit c44e8aa into tidev:master Jun 2, 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