iscBento/modal/iscWidgetModal.component.js
// finds which tab is in view and sets it to be the active tab
finds which tab is in view and sets it to be the active tab
finds which tab is in view and sets it to be the active tab
function checkPosition( event ) {
      _.forEach( self.tabs, function( tab ) {
        if ( tab.isVisible( _.get( event, 'target.scrollLeft', widgetModalService.scrollDiv.scrollLeft() ) ) ) {
          $scope.$apply( function() {
            self.activeTab = tab;
          } );
          return false;
        }
      } );
    }
function checkPosition ( event ) { _ . forEach ( self . tabs , function ( tab ) { if ( tab . isVisible ( _ . get ( event , 'target.scrollLeft' , widgetModalService . scrollDiv . scrollLeft ( ) ) ) ) { $scope . $apply ( function ( ) { self . activeTab = tab ; } ) ; return false ; } } ) ; }
finds which tab is in view and sets it to be the active tab
finds which tab is in view and sets it to be the active tab