瀏覽代碼

add pdf-ready event; dispatched when the presentation is laid out and ready to print

Hakim El Hattab 8 年之前
父節點
當前提交
19188205de
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      js/reveal.js

+ 3 - 0
js/reveal.js

@@ -714,6 +714,9 @@
 			fragment.classList.add( 'visible' );
 		} );
 
+		// Notify subscribers that the PDF layout is good to go
+		dispatchEvent( 'pdf-ready' );
+
 	}
 
 	/**