addon/components/infinity-loader.js
/**
   * setup ember-in-viewport properties
   *
   * @method didInsertElement
   */
setup ember-in-viewport properties
@method didInsertElement
setup ember - in - viewport properties @method didInsertElement
didInsertLoader(element, [instance]) {
    set(instance, 'loadingText', instance.loadingText || 'Loading Infinity Model...');
    set(instance, 'loadedText', instance.loadedText || 'Infinity Model Entirely Loaded.');
    instance.elem = element;
    let options = {
      viewportSpy: true,
      viewportTolerance: {
        top: 0,
        right: 0,
        bottom: instance.triggerOffset,
        left: 0
      },
      scrollableArea: instance.scrollable
    };
    const { onEnter, onExit } = instance.inViewport.watchElement(element, options);
    onEnter(instance.didEnterViewport.bind(instance));
    onExit(instance.didExitViewport.bind(instance));
  }
didInsertLoader ( element , [ instance ] ) { set ( instance , 'loadingText' , instance . loadingText || 'Loading Infinity Model...' ) ; set ( instance , 'loadedText' , instance . loadedText || 'Infinity Model Entirely Loaded.' ) ; instance . elem = element ; let options = { viewportSpy : true , viewportTolerance : { top : 0 , right : 0 , bottom : instance . triggerOffset , left : 0 } , scrollableArea : instance . scrollable } ; const { onEnter , onExit } = instance . inViewport . watchElement ( element , options ) ; onEnter ( instance . didEnterViewport . bind ( instance ) ) ; onExit ( instance . didExitViewport . bind ( instance ) ) ; }
setup ember-in-viewport properties
 @method didInsertElement
setup ember - in - viewport properties @method didInsertElement
/**
     * @public
     * @property loadingText
     */ /**
     * @public
     * @property loadedText
     */