Created
May 20, 2014 11:18
-
-
Save Ahrengot/e7e8eac6f490e76f0ea2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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