Skip to content

Commit 9eed253

Browse files
committed
Fix lisp-case js vars
(js thinks it's a minus op, silly js)
1 parent 08fbfc9 commit 9eed253

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.org

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ If you want to use validations from JavaScript, first build the js:
133133
=target/js/xapi_schema.js= and invoke:
134134

135135
#+BEGIN_SRC javascript
136-
var statement-str = '{"id":"fd41c918-b88b-4b20-a0a5-a4c32391aaa0", "actor":{"objectType": "Agent","name":"Project Tin Can API","mbox":"mailto:user@example.com"},"verb":{"id":"http://example.com/xapi/verbs#sent-a-statement","display":{ "en-US":"sent" }},"object":{"id":"http://example.com/xapi/activity/simplestatement","definition":{"name":{ "en-US":"simple statement" },"description":{ "en-US":"A simple Experience API statement. Note that the LRS does not need to have any prior information about the Actor (learner), the verb, or the Activity/object." }}}}';
137-
var statement-json = JSON.parse(s);
136+
var statement_str = '{"id":"fd41c918-b88b-4b20-a0a5-a4c32391aaa0", "actor":{"objectType": "Agent","name":"Project Tin Can API","mbox":"mailto:user@example.com"},"verb":{"id":"http://example.com/xapi/verbs#sent-a-statement","display":{ "en-US":"sent" }},"object":{"id":"http://example.com/xapi/activity/simplestatement","definition":{"name":{ "en-US":"simple statement" },"description":{ "en-US":"A simple Experience API statement. Note that the LRS does not need to have any prior information about the Actor (learner), the verb, or the Activity/object." }}}}';
137+
var statement_json = JSON.parse(s);
138138
xapi_schema.core.validate_statement_data_js(statement-str); // => statement JSON
139139
xapi_schema.core.validate_statement_data_js(statement-json); // => statement JSON
140140
#+END_SRC

0 commit comments

Comments
 (0)