Ver Fonte

Reveal.VERSION is now available prior to initialization #2651

Hakim El Hattab há 5 anos atrás
pai
commit
a1f03cb337
4 ficheiros alterados com 6 adições e 4 exclusões
  1. 0 0
      dist/reveal.esm.js
  2. 0 0
      dist/reveal.js
  3. 3 1
      js/index.js
  4. 3 3
      js/reveal.js

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/reveal.esm.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/reveal.js


+ 3 - 1
js/index.js

@@ -1,4 +1,4 @@
-import Deck from './reveal.js'
+import Deck, { VERSION } from './reveal.js'
 
 /**
  * Expose the Reveal class to the window. To create a
@@ -51,4 +51,6 @@ Reveal.initialize = options => {
 	}
 } );
 
+Reveal.VERSION = VERSION;
+
 export default Reveal;

+ 3 - 3
js/reveal.js

@@ -25,6 +25,9 @@ import {
 	POST_MESSAGE_METHOD_BLACKLIST
 } from './utils/constants.js'
 
+// The reveal.js version
+export const VERSION = '4.0.0-rc.1';
+
 /**
  * reveal.js
  * https://revealjs.com
@@ -43,9 +46,6 @@ export default function( revealElement, options ) {
 
 	const Reveal = {};
 
-	// The reveal.js version
-	const VERSION = '4.0.0-rc.1';
-
 	// Configuration defaults, can be overridden at initialization time
 	let config,
 

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff