Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

Allow setting the Javascript scope for components#9

Open
jbroadice wants to merge 1 commit intoreactjs:master from
jbroadice:dev-component-scope
Open

Allow setting the Javascript scope for components #9
jbroadice wants to merge 1 commit intoreactjs:master from
jbroadice:dev-component-scope

Conversation

@jbroadice
Copy link
Contributor

@jbroadice jbroadice commented Jul 18, 2015

It seems ugly to have to place components in the global scope. How about this method to allow for setting the JavaScript scope in which React components are contained?

Copy link
Member

Choose a reason for hiding this comment

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

Seems fine but this should default to window. global is not defined by default.

Or perhaps even better, we don't define a default and if it's not set, then we don't try to use it.

Also nit here and other comments: ""JavaScript", not "Javascript".

18601673727 added a commit to 18601673727/react-php-v8js that referenced this pull request Dec 16, 2015
Copy link

#20

Copy link

This is a thing I would like to do too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /