extras/noUiSlider/nouislider.js
function fireEvent ( eventName, handleNumber, tap ) {

            Object.keys(scope_Events).forEach(function( targetEvent ) {

                var eventType = targetEvent.split('.')[0];

                if ( eventName === eventType ) {
                    scope_Events[targetEvent].forEach(function( callback ) {

                        callback.call(
                            // Use the slider public API as the scope ('this')
                            scope_Self,
                            // Return values as array, so arg_1[arg_2] is always valid.
                            scope_Values.map(options.format.to),
                            // Handle index, 0 or 1
                            handleNumber,
                            // Unformatted slider values
                            scope_Values.slice(),
                            // Event is fired by tap, true or false
                            tap || false,
                            // Left offset of the handle, in relation to the slider
                            scope_Locations.slice()
                        );
                    });
                }
            });
        }
function fireEvent ( eventName, handleNumber, tap ) {

            Object.keys(scope_Events).forEach(function( targetEvent ) {

                var eventType = targetEvent.split('.')[0];

                if ( eventName === eventType ) {
                    scope_Events[targetEvent].forEach(function( callback ) {

                        callback.call(
                            // Use the slider public API as the scope ('this')
                            scope_Self,
                            // Return values as array, so arg_1[arg_2] is always valid.
                            scope_Values.map(options.format.to),
                            // Handle index, 0 or 1
                            handleNumber,
                            // Unformatted slider values
                            scope_Values.slice(),
                            // Event is fired by tap, true or false
                            tap || false,
                            // Left offset of the handle, in relation to the slider
                            scope_Locations.slice()
                        );
                    });
                }
            });
        }
function fireEvent ( eventName , handleNumber , tap ) { Object . keys ( scope_Events ) . forEach ( function ( targetEvent ) { var eventType = targetEvent . split ( '.' ) [ 0 ] ; if ( eventName === eventType ) { scope_Events [ targetEvent ] . forEach ( function ( callback ) { callback . call ( // Use the slider public API as the scope ('this') scope_Self , // Return values as array, so arg_1[arg_2] is always valid. scope_Values . map ( options . format . to ) , // Handle index, 0 or 1 handleNumber , // Unformatted slider values scope_Values . slice ( ) , // Event is fired by tap, true or false tap || false , // Left offset of the handle, in relation to the slider scope_Locations . slice ( ) ) ; } ) ; } } ) ; }
External event handling
External event handling