Permalink
Browse files

expose new api for slide commands

  • Loading branch information...
1 parent 03dcd05 commit ef275978d963004003b6ac4615eda19ce3772e06 Andrei Neculau committed Nov 21, 2012
Showing with 14 additions and 1 deletion.
  1. +1 −1 remark.min.js
  2. +13 −0 src/remark.js
View
2 remark.min.js
1 addition, 1 deletion not shown because the diff is too large. Please use a local Git client to view these changes.
View
13 src/remark.js
@@ -29,6 +29,19 @@ api.ready = function () {
api.emit('ready');
};
+api.gotoSlide = function(slideNoOrName) {
+ dispatcher.emit('gotoSlide', slideNoOrName);
+};
+
+api.gotoNextSlide = function() {
+ dispatcher.emit('gotoNextSlide');
+};
+
+api.gotoPreviousSlide = function() {
+ dispatcher.emit('gotoPreviousSlide');
+};
+
+
function assureElementsExist (sourceElement, slideshowElement) {
if (!sourceElement) {
dom.alert('remark error: source element not present.');

0 comments on commit ef27597

Please sign in to comment.