Skip to content

Added cloud funciton argument #145

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

Merged
merged 2 commits into from
Feb 2, 2016

Conversation

taylorstine
Copy link
Contributor

For convenience if using a build process like Webpack or Browserify. Since the path to the required cloud file isn't evaluated until runtime, this allows the client to specify an "initialization" function for the cloud code.

@@ -51,7 +51,14 @@ function ParseServer(args) {
}
if (args.cloud) {
addParseCloud();
require(args.cloud);
if (typeof args.cloud === 'function') {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a comment here above the if block explaining the option?

@taylorstine
Copy link
Contributor Author

@gfosco updated

gfosco added a commit that referenced this pull request Feb 2, 2016
@gfosco gfosco merged commit 8fda77c into parse-community:master Feb 2, 2016
@gfosco
Copy link
Contributor

gfosco commented Feb 2, 2016

👍

1 similar comment
@blacksails
Copy link

👍

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.

3 participants