File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 2682
2682
function syncSlide ( slide ) {
2683
2683
2684
2684
syncBackground ( slide ) ;
2685
-
2686
- sortFragments ( slide . querySelectorAll ( '.fragment' ) ) ;
2685
+ syncFragments ( slide ) ;
2687
2686
2688
2687
updateBackground ( ) ;
2689
2688
updateNotes ( ) ;
2692
2691
2693
2692
}
2694
2693
2694
+ /**
2695
+ * Formats the fragments on the given slide so that they have
2696
+ * valid indices. Call this if fragments are changed in the DOM
2697
+ * after reveal.js has already initialized.
2698
+ *
2699
+ * @param {HTMLElement } slide
2700
+ */
2701
+ function syncFragments ( slide ) {
2702
+
2703
+ sortFragments ( slide . querySelectorAll ( '.fragment' ) ) ;
2704
+
2705
+ }
2706
+
2695
2707
/**
2696
2708
* Resets all vertical slides so that only the first
2697
2709
* is visible.
5297
5309
5298
5310
initialize : initialize ,
5299
5311
configure : configure ,
5312
+
5300
5313
sync : sync ,
5301
5314
syncSlide : syncSlide ,
5315
+ syncFragments : syncFragments ,
5302
5316
5303
5317
// Navigation methods
5304
5318
slide : slide ,
You can’t perform that action at this time.
0 commit comments