source/js/le-player.js
/**
	 * Init sections, get ajax or json with sections data and create Sections object and added them to the DOM
	 *
	 * @access private
	 * @returns {jqPromise} jQuery promise
	 */
Init sections, get ajax or json with sections data and create Sections object and added them to the DOM
@access private
@returns {jqPromise} jQuery promise
Init sections get ajax or json with sections data and create Sections object and added them to the DOM @access private @returns { jqPromise } jQuery promise
_initSections() {
		const dfd = $.Deferred();
		if (this.options.data == null) {
			dfd.reject(null)
		} else {
			this.getSectionData().done(sections => {
				sections = [...sections];
				const isSectionOutside = (this.sectionsContainer && this.sectionsContainer.length > 0);
				if (sections == null || sections.length === 0) {
					dfd.reject(null);
					return;
				}
				sections = this._completeSections(sections);
				this.sections = new Sections(this, {
					items : sections,
					fullscreenOnly : isSectionOutside,
					hideScroll : true
				});
				this.innerElement.append(this.sections.element);
				if (isSectionOutside) {
					this.outsideSections = new Sections(this, {
						items : sections
					});
					this.sectionsContainer.append(this.outsideSections.element);
				}
				dfd.resolve({ items : sections });
			})
		}
		return dfd.promise()
	}
_initSections ( ) { const dfd = $ . Deferred ( ) ; if ( this . options . data == null ) { dfd . reject ( null ) } else { this . getSectionData ( ) . done ( sections => { sections = [ ... sections ] ; const isSectionOutside = ( this . sectionsContainer && this . sectionsContainer . length > 0 ) ; if ( sections == null || sections . length === 0 ) { dfd . reject ( null ) ; return ; } sections = this . _completeSections ( sections ) ; this . sections = new Sections ( this , { items : sections , fullscreenOnly : isSectionOutside , hideScroll : true } ) ; this . innerElement . append ( this . sections . element ) ; if ( isSectionOutside ) { this . outsideSections = new Sections ( this , { items : sections } ) ; this . sectionsContainer . append ( this . outsideSections . element ) ; } dfd . resolve ( { items : sections } ) ; } ) } return dfd . promise ( ) }
Init sections, get ajax or json with sections data and create Sections object and added them to the DOM
 @access private
 @returns {jqPromise} jQuery promise
Init sections get ajax or json with sections data and create Sections object and added them to the DOM @access private @returns { jqPromise } jQuery promise