Skip to content

Instantly share code, notes, and snippets.

@bergmark
Created August 29, 2011 18:07
Show Gist options
  • Select an option

  • Save bergmark/1178976 to your computer and use it in GitHub Desktop.

Select an option

Save bergmark/1178976 to your computer and use it in GitHub Desktop.
prepareDto : function (vals, helpers) {
var dto = this.newDto();
dto.reversePopulate(vals, helpers).then(function () {
try {
var fields = dto.get(helpers);
} catch (e) {
setTimeout(this.getTHROW().curry(e), 0);
return;
}
setTimeout(this.getCONTINUE().curry(fields), 0);
}).now();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment