_demo/assets/js/list-scroll.js
function remove( element ) {
    for( var i = 0; i < lists.length; i++ ) {
      var list = lists[i];

      if( list.element == element ) {
        list.destroy();
        lists.splice( i, 1 );
        i--;
      }
    }

    // Stopped refreshing if the last list was removed
    if( lists.length === 0 ) {
      active = false;
    }
  }
function remove( element ) {
    for( var i = 0; i < lists.length; i++ ) {
      var list = lists[i];

      if( list.element == element ) {
        list.destroy();
        lists.splice( i, 1 );
        i--;
      }
    }

    // Stopped refreshing if the last list was removed
    if( lists.length === 0 ) {
      active = false;
    }
  }
function remove ( element ) { for ( var i = 0 ; i < lists . length ; i ++ ) { var list = lists [ i ] ; if ( list . element == element ) { list . destroy ( ) ; lists . splice ( i , 1 ) ; i -- ; } } // Stopped refreshing if the last list was removed if ( lists . length === 0 ) { active = false ; } }
Stops monitoring a list element and removes any classes
that were applied to its list items.

@param {HTMLElement} element
Stops monitoring a list element and removes any classes that were applied to its list items .