浏览代码

plugin consistency

Hakim El Hattab 5 年之前
父节点
当前提交
619b3a087c
共有 4 个文件被更改,包括 5 次插入5 次删除
  1. 0 0
      dist/plugin/notes.js
  2. 1 1
      plugin/highlight/highlight.js
  3. 3 3
      plugin/notes/notes.js
  4. 1 1
      plugin/zoom/zoom.js

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


+ 1 - 1
plugin/highlight/highlight.js

@@ -5,7 +5,7 @@ import './highlight-line-numbers.js'
  * reveal.js plugin that adds syntax highlight support.
  */
 
-let Plugin = {
+const Plugin = {
 
 	id: 'highlight',
 

+ 3 - 3
plugin/notes/notes.js

@@ -9,7 +9,7 @@
  * 3. This window proceeds to send the current presentation state
  *    to the notes window
  */
-let Plugin = (function() {
+const Plugin = () => {
 
     var notesPopup = null;
 
@@ -180,6 +180,6 @@ let Plugin = (function() {
 		open: openNotes
 	};
 
-})();
+};
 
-export default () => Plugin;
+export default Plugin;

+ 1 - 1
plugin/zoom/zoom.js

@@ -1,7 +1,7 @@
 /*!
  * reveal.js Zoom plugin
  */
-var Plugin = {
+const Plugin = {
 
 	id: 'zoom',
 

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