Bladeren bron

Merge pull request #2346 from dougalsutherland/patch-3

notes plugin: callRevealApi wants apply, not call
Hakim El Hattab 5 jaren geleden
bovenliggende
commit
7b66abd49c
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      plugin/notes/notes.js

+ 1 - 1
plugin/notes/notes.js

@@ -68,7 +68,7 @@ var RevealNotes = (function() {
 		 */
 		function callRevealApi( methodName, methodArguments, callId ) {
 
-			var result = Reveal[methodName].call( Reveal, methodArguments );
+			var result = Reveal[methodName].apply( Reveal, methodArguments );
 			notesPopup.postMessage( JSON.stringify( {
 				namespace: 'reveal-notes',
 				type: 'return',