remove unused variable, update multi-instance example in readme

edit
Hakim El Hattab 2020-04-08 11:46:46 +02:00
parent 6030043036
commit 2e8619d300
3 changed files with 6 additions and 9 deletions

View File

@ -174,10 +174,10 @@ If you want to run multiple presentations side-by-side on the same page you can
<div class="reveal deck-1">...</div> <div class="reveal deck-1">...</div>
<div class="reveal deck-2">...</div> <div class="reveal deck-2">...</div>
<script type="module"> <script type="module">
import Reveal from 'js/reveal.js'; import Deck from 'js/reveal.js';
let deck1 = new Reveal( document.querySelector( 'deck-1' ), { embedded: true } ); let deck1 = new Deck( document.querySelector( 'deck-1' ), { embedded: true } );
let deck2 = new Reveal( document.querySelector( 'deck-2' ), { embedded: true } ); let deck2 = new Deck( document.querySelector( 'deck-2' ), { embedded: true } );
deck1.initialize(); deck1.initialize();
deck2.initialize(); deck2.initialize();

View File

@ -101,9 +101,6 @@ export default function( revealElement, options ) {
// Cached references to DOM elements // Cached references to DOM elements
dom = {}, dom = {},
// List of asynchronously loaded reveal.js dependencies
asyncDependencies = [],
// Flags if the interaction event listeners are bound // Flags if the interaction event listeners are bound
eventsAreBound = false, eventsAreBound = false,

View File

@ -2,7 +2,7 @@ const path = require('path');
module.exports = { module.exports = {
mode: 'production', mode: 'production',
entry: ["./js/index.js"], entry: ['./js/index.js'],
output: { output: {
path: path.join(__dirname, '/dist'), path: path.join(__dirname, '/dist'),
filename: 'reveal.min.js', filename: 'reveal.min.js',
@ -15,8 +15,8 @@ module.exports = {
loader: 'babel-loader', loader: 'babel-loader',
query: { query: {
presets: [ presets: [
[ '@babel/preset-env' ], [ '@babel/preset-env' ]
], ]
} }
} }
] ]