aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/notes/notes.html3
-rw-r--r--plugin/notes/notes.js4
2 files changed, 7 insertions, 0 deletions
diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html
index eff1275..a6bd5e2 100644
--- a/plugin/notes/notes.html
+++ b/plugin/notes/notes.html
@@ -378,6 +378,9 @@
} );
+ /**
+ * Asynchronously calls the Reveal.js API of the main frame.
+ */
function callRevealApi( methodName, methodArguments, callback ) {
var callId = ++lastRevealApiCallId;
pendingCalls[callId] = callback;
diff --git a/plugin/notes/notes.js b/plugin/notes/notes.js
index dd7df8e..dce9b4e 100644
--- a/plugin/notes/notes.js
+++ b/plugin/notes/notes.js
@@ -51,6 +51,10 @@ var RevealNotes = (function() {
} );
}
+ /**
+ * Calls the specified Reveal.js method with the provided argument and then pushes the result to the notes
+ * frame.
+ */
function callRevealApi( methodName, methodArguments, callId ) {
var result = Reveal[methodName].call(Reveal, methodArguments);
notesPopup.postMessage( JSON.stringify( {