Commit a0dd62da by solashirai Committed by Piotr Mitros

variable name fix

parent d93375bc
...@@ -22,12 +22,12 @@ function CrowdsourceHinter(runtime, element){ ...@@ -22,12 +22,12 @@ function CrowdsourceHinter(runtime, element){
//directly passing data to onStudentSubmission does not work for unknown reasons (to be fixed?) //directly passing data to onStudentSubmission does not work for unknown reasons (to be fixed?)
function get_event_data(event_type, data, element){ function get_event_data(event_type, data, element){
//below is minimal mustache template usage attempt //below is minimal mustache template usage attempt
var data = { var options = {
firstName: "Sola", firstName: "Sola",
lastName: "Shirai", lastName: "Shirai",
testvar: "Hello" testvar: "Hello"
}; };
var template = $(Mustache.render($("#testingID").html(), data)); var template = $(Mustache.render($("#testingID").html(), options));
$('#sampleArea').html(template); $('#sampleArea').html(template);
onStudentSubmission(data); onStudentSubmission(data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment