Skip to content

Commit 7bb431b

Browse files
committed
Filling array of slides also before pre-init event (still re-fill it after pre-init)
1 parent b37c6c4 commit 7bb431b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/deck.core.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,12 @@ that use the API provided by core.
283283
// Hide the deck while states are being applied to kill transitions
284284
$container.addClass(options.classes.loading);
285285

286+
// populate the array of slides for pre-init
287+
initSlidesArray(elements);
286288
// Pre init event for preprocessing hooks
287289
beforeInitEvent.done = function() {
290+
// re-populate the array of slides
291+
slides = [];
288292
initSlidesArray(elements);
289293
bindKeyEvents();
290294
bindTouchEvents();

0 commit comments

Comments
 (0)