Skip to content

Instantly share code, notes, and snippets.

@Ahrengot
Created May 20, 2014 11:18
Show Gist options
  • Select an option

  • Save Ahrengot/e7e8eac6f490e76f0ea2 to your computer and use it in GitHub Desktop.

Select an option

Save Ahrengot/e7e8eac6f490e76f0ea2 to your computer and use it in GitHub Desktop.
// Set model answar prop and check if answar is correct
this.questions.at( this.model.get("index") ).set( "answar", {
allPointsCorrect: _.all( draggables, function() { return $(this.target).data("accepted"); } ),
coords: _.map( draggables, function() { return $(this.target).data( "position" ); } )
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment