浏览代码

Reveal.VERSION is now available prior to initialization #2651

Hakim El Hattab 5 年之前
父节点
当前提交
a1f03cb337
共有 4 个文件被更改,包括 6 次插入4 次删除
  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

文件差异内容过多而无法显示
+ 0 - 0
dist/reveal.esm.js


文件差异内容过多而无法显示
+ 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
  * Expose the Reveal class to the window. To create a
@@ -51,4 +51,6 @@ Reveal.initialize = options => {
 	}
 	}
 } );
 } );
 
 
+Reveal.VERSION = VERSION;
+
 export default Reveal;
 export default Reveal;

+ 3 - 3
js/reveal.js

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

部分文件因为文件数量过多而无法显示