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

Create a global require function #84

Closed
PanayotCankov opened this issue Apr 17, 2015 · 0 comments
Closed

Create a global require function #84

PanayotCankov opened this issue Apr 17, 2015 · 0 comments

Comments

@PanayotCankov
Copy link
Contributor

The modules are wrapped in a function that defines a local require. However when using the debugger it would be useful to have the require at hand, even if we are not stopped at breakpoint.

We can make that by defining a global require function. It should search from a path relative to the app's root. And expressions such as:

global.require("ui/frame").topmost().ios.navBarVisibility

should easily locate the ui/frame module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants