Skip to content

Instantly share code, notes, and snippets.

@marr
Created July 21, 2015 22:29
Show Gist options
  • Save marr/dceaa5828841b60176f5 to your computer and use it in GitHub Desktop.
Save marr/dceaa5828841b60176f5 to your computer and use it in GitHub Desktop.
const description = this.cleanedData.description;
if (description) {
const p = CampaignActions.verifyContent('description', description);
}
const title = this.cleanedData.title;
if (title) {
const p1 = CampaignActions.verifyContent('title', title);
}
if (p && p1) { p.then(p1).then(callback); }
else if (p1) { p1.then(callback) }
else if (p) { p.then(callback) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment