mirror of
https://github.com/webslides/WebSlides.git
synced 2025-08-26 14:34:27 +02:00
Moving error to be more meaningful
This commit is contained in:
@@ -52,6 +52,11 @@ export default class WebSlides {
|
|||||||
* @type {Element}
|
* @type {Element}
|
||||||
*/
|
*/
|
||||||
this.el = document.getElementById('webslides');
|
this.el = document.getElementById('webslides');
|
||||||
|
|
||||||
|
if (!this.el) {
|
||||||
|
throw new Error('Couldn\'t find the webslides container!');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Moving flag.
|
* Moving flag.
|
||||||
* @type {boolean}
|
* @type {boolean}
|
||||||
@@ -108,10 +113,6 @@ export default class WebSlides {
|
|||||||
*/
|
*/
|
||||||
this.initialised = false;
|
this.initialised = false;
|
||||||
|
|
||||||
if (!this.el) {
|
|
||||||
throw new Error('Couldn\'t find the webslides container!');
|
|
||||||
}
|
|
||||||
|
|
||||||
// Bootstrapping
|
// Bootstrapping
|
||||||
this.removeChildren_();
|
this.removeChildren_();
|
||||||
this.grabSlides_();
|
this.grabSlides_();
|
||||||
|
Reference in New Issue
Block a user