Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

Allow setting the Javascript scope for components #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jbroadice
Copy link
Contributor

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?

* The Javascript scope in which React components are contained (defaults to global)
* @var string
*/
$componentScope = 'global',
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
@18601673727
Copy link

#20

@jonalport
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants