Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit db3ce30

Browse files
committed
moving to this.logBookEvent
1 parent d1bbe58 commit db3ce30

File tree

4 files changed

+2
-22
lines changed

4 files changed

+2
-22
lines changed

runestone/clickableArea/js/clickable.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,6 @@
88
=== Isaiah Mayerchak ===
99
=== 7/1/15 ===
1010
==========================================*/
11-
function RunestoneBase () { // Basic parent stuff
12-
13-
}
14-
RunestoneBase.prototype.logBookEvent = function (info) {
15-
console.log("logging event " + this.divid);
16-
};
17-
RunestoneBase.prototype.logRunEvent = function (info) {
18-
console.log("running " + this.divid);
19-
};
20-
2111
var CAList = {}; // Dictionary that contains all instances of ClickableArea objects
2212

2313

runestone/datafile/datafile.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,6 @@
99
=== 6/8/15 ===
1010
==========================================*/
1111

12-
function RunestoneBase () { // Basic parent stuff
13-
14-
}
15-
RunestoneBase.prototype.logBookEvent = function (info) {
16-
console.log("logging event " + this.divid);
17-
};
18-
RunestoneBase.prototype.logRunEvent = function (info) {
19-
console.log("running " + this.divid);
20-
};
21-
2212
var dfList = {}; // Dictionary that contains all instances of Datafile objects
2313

2414

runestone/poll/js/poll.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function submitPoll(div_id) {
1818
var eventInfo = {'event':'poll', 'act':act, 'div_id':div_id};
1919

2020
// log the response to the database
21-
logBookEvent(eventInfo); // in bookfuncs.js
21+
this.logBookEvent(eventInfo); // in bookfuncs.js
2222

2323
// log the fact that the user has answered the poll to local storage
2424
localStorage.setItem(div_id, "true");

runestone/shortanswer/js/shortanswer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function submitJournal(directive_id) {
4040
function(data) {
4141
console.log(data.message);
4242
}); */
43-
logBookEvent({'event': 'shortanswer', 'act': JSON.stringify(value), 'div_id': directive_id});
43+
this.logBookEvent({'event': 'shortanswer', 'act': JSON.stringify(value), 'div_id': directive_id});
4444
}
4545

4646

0 commit comments

Comments
 (0)