Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

[WEEX-445][jsfm] export requireModule to global #1254

Merged
merged 1 commit into from
Jun 27, 2018

Conversation

imyzf
Copy link
Contributor

@imyzf imyzf commented Jun 8, 2018

First of all, thank you for your contribution!

Please makes sure that these checkboxes are checked before submitting your PR, thank you!

CheckList:

if isBugFix :

  • Make sure that you add at least one unit test for the bug which you had fixed.

elif isNewFeature :

  • Update API docs for the component.
  • Update/Add demo to demonstrate new feature.
  • Update test scripts for the feature.
  • Add unit tests for the feature.

This is a API for internal usage, so no test and no doc update.

@weex-bot
Copy link

weex-bot commented Jun 8, 2018

Messages
📖 No android file has been changed.
📖 android build verification finished.

Generated by 🚫 dangerJS

@@ -117,6 +117,7 @@ function createInstanceContext (id, options = {}, data) {
Object.assign(runtimeContext, services, {
weex,
getJSFMVersion,
requireModule: weex.requireModule,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think using (..args) => weex.requireModule(...args) is more reliable. We should not assume that the context of requireModule has bind to weex even if it actually does.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

@asfgit asfgit merged commit aebd432 into apache:master Jun 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants