diff options
author | Hakim El Hattab | 2013-03-08 18:49:28 -0500 |
---|---|---|
committer | Hakim El Hattab | 2013-03-08 18:49:28 -0500 |
commit | 2bd5e8b65b5e015c7c7ceffeff845e41811007ed (patch) | |
tree | 93cd402c11465003c2b669f0ac2a8162337e649f /js/reveal.js | |
parent | 16f9749db5f1e3294b574fd0acddf52280c4bb1d (diff) | |
parent | 4963f15ab31406cf1ee53dc4d116eb8f630f2b1a (diff) |
merge in multiplex (#98)
Diffstat (limited to 'js/reveal.js')
-rw-r--r-- | js/reveal.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/js/reveal.js b/js/reveal.js index 4b56ed1..b767594 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -160,6 +160,9 @@ var Reveal = (function(){ // Copy options over to our config object extend( config, options ); + // Push up globals + window.globals = config.globals; + // Hide the address bar in mobile browsers hideAddressBar(); @@ -1019,8 +1022,9 @@ var Reveal = (function(){ * @param {int} v Vertical index of the target slide * @param {int} f Optional index of a fragment within the * target slide to activate + * @param {int} o Optional origin for use in multimaster environments */ - function slide( h, v, f ) { + function slide( h, v, f, o ) { // Remember where we were at before previousSlide = currentSlide; @@ -1115,7 +1119,8 @@ var Reveal = (function(){ 'indexh': indexh, 'indexv': indexv, 'previousSlide': previousSlide, - 'currentSlide': currentSlide + 'currentSlide': currentSlide, + 'origin': o } ); } else { |