function eventEnd ( event, data ) {

            // The handle is no longer active, so remove the class.
            if ( scope_ActiveHandle ) {
                removeClass(scope_ActiveHandle, options.cssClasses.active);
                scope_ActiveHandle = false;
            }

            // Remove cursor styles and text-selection events bound to the body.
            if ( event.cursor ) {
                document.body.style.cursor = '';
                document.body.removeEventListener('selectstart', document.body.noUiListener);
            }

            // Unbind the move and end events, which are added on 'start'.
            document.documentElement.noUiListeners.forEach(function( c ) {
                document.documentElement.removeEventListener(c[0], c[1]);
            });

            // Remove dragging class.
            removeClass(scope_Target, options.cssClasses.drag);

            setZindex();

            data.handleNumbers.forEach(function(handleNumber){
                fireEvent('set', handleNumber);
                fireEvent('change', handleNumber);
                fireEvent('end', handleNumber);
            });
        }
function eventEnd ( event, data ) {

            // The handle is no longer active, so remove the class.
            if ( scope_ActiveHandle ) {
                removeClass(scope_ActiveHandle, options.cssClasses.active);
                scope_ActiveHandle = false;
            }

            // Remove cursor styles and text-selection events bound to the body.
            if ( event.cursor ) {
                document.body.style.cursor = '';
                document.body.removeEventListener('selectstart', document.body.noUiListener);
            }

            // Unbind the move and end events, which are added on 'start'.
            document.documentElement.noUiListeners.forEach(function( c ) {
                document.documentElement.removeEventListener(c[0], c[1]);
            });

            // Remove dragging class.
            removeClass(scope_Target, options.cssClasses.drag);

            setZindex();

            data.handleNumbers.forEach(function(handleNumber){
                fireEvent('set', handleNumber);
                fireEvent('change', handleNumber);
                fireEvent('end', handleNumber);
            });
        }
function eventEnd ( event , data ) { // The handle is no longer active, so remove the class. if ( scope_ActiveHandle ) { removeClass ( scope_ActiveHandle , options . cssClasses . active ) ; scope_ActiveHandle = false ; } // Remove cursor styles and text-selection events bound to the body. if ( event . cursor ) { document . body . style . cursor = '' ; document . body . removeEventListener ( 'selectstart' , document . body . noUiListener ) ; } // Unbind the move and end events, which are added on 'start'. document . documentElement . noUiListeners . forEach ( function ( c ) { document . documentElement . removeEventListener ( c [ 0 ] , c [ 1 ] ) ; } ) ; // Remove dragging class. removeClass ( scope_Target , options . cssClasses . drag ) ; setZindex ( ) ; data . handleNumbers . forEach ( function ( handleNumber ) { fireEvent ( 'set' , handleNumber ) ; fireEvent ( 'change' , handleNumber ) ; fireEvent ( 'end' , handleNumber ) ; } ) ; }
Unbind move events on document, call callbacks.
Unbind move events on document call callbacks .
End event handler for the handle