Browse Source

Adapt to new js interface

Samy Pessé 11 years ago
parent
commit
5133bbe087
1 changed files with 3 additions and 3 deletions
  1. 3 3
      book/test.js

+ 3 - 3
book/test.js

@@ -1,9 +1,9 @@
-$(document).bind("bookReady", function() {
-    gitbook.bind("page.change", function() {
+require(["gitbook"], function(gitbook) {
+    gitbook.events.bind("page.change", function() {
         // do something
     });
 
-    gitbook.bind("exercise.submit", function() {
+    gitbook.events.bind("exercise.submit", function() {
         // do something
     });
 });