|
12 | 12 | return the buttons, but I'm having a hard time thinking of any other use for that besides mine. |
13 | 13 | */ |
14 | 14 | function attachLoggers(codelens, divid) { |
| 15 | + rb = new RunestoneBase(); |
15 | 16 | codelens.domRoot.find("#jmpFirstInstr").click(function () { |
16 | | - logBookEvent({'event': 'codelens', 'act': 'first', 'div_id': divid}); |
| 17 | + rb.logBookEvent({'event': 'codelens', 'act': 'first', 'div_id': divid}); |
17 | 18 | }); |
18 | 19 | codelens.domRoot.find("#jmpLastInstr").click(function () { |
19 | | - logBookEvent({'event': 'codelens', 'act': 'last', 'div_id': divid}); |
| 20 | + rb.logBookEvent({'event': 'codelens', 'act': 'last', 'div_id': divid}); |
20 | 21 | }); |
21 | 22 | codelens.domRoot.find("#jmpStepBack").click(function () { |
22 | | - logBookEvent({'event': 'codelens', 'act': 'back', 'div_id': divid}); |
| 23 | + rb.logBookEvent({'event': 'codelens', 'act': 'back', 'div_id': divid}); |
23 | 24 | }); |
24 | 25 | codelens.domRoot.find("#jmpStepFwd").click(function () { |
25 | | - logBookEvent({'event': 'codelens', 'act': 'fwd', 'div_id': divid}); |
| 26 | + rb.logBookEvent({'event': 'codelens', 'act': 'fwd', 'div_id': divid}); |
26 | 27 | }); |
27 | 28 | codelens.domRoot.find("#executionSlider").bind('slide', function (evt, ui) { |
28 | | - logBookEvent({'event': 'codelens', 'act': 'slide', 'div_id': divid}); |
| 29 | + rb.logBookEvent({'event': 'codelens', 'act': 'slide', 'div_id': divid}); |
29 | 30 | }); |
30 | 31 |
|
31 | 32 | } |
|
0 commit comments