extras/noUiSlider/nouislider.js
function addElements ( connectOptions, base ) {

            scope_Handles = [];
            scope_Connects = [];

            scope_Connects.push(addConnect(base, connectOptions[0]));

            // [::::O====O====O====]
            // connectOptions = [0, 1, 1, 1]

            for ( var i = 0; i < options.handles; i++ ) {
                // Keep a list of all added handles.
                scope_Handles.push(addOrigin(base, i));
                scope_HandleNumbers[i] = i;
                scope_Connects.push(addConnect(base, connectOptions[i + 1]));
            }
        }
function addElements ( connectOptions, base ) {

            scope_Handles = [];
            scope_Connects = [];

            scope_Connects.push(addConnect(base, connectOptions[0]));

            // [::::O====O====O====]
            // connectOptions = [0, 1, 1, 1]

            for ( var i = 0; i < options.handles; i++ ) {
                // Keep a list of all added handles.
                scope_Handles.push(addOrigin(base, i));
                scope_HandleNumbers[i] = i;
                scope_Connects.push(addConnect(base, connectOptions[i + 1]));
            }
        }
function addElements ( connectOptions , base ) { scope_Handles = [ ] ; scope_Connects = [ ] ; scope_Connects . push ( addConnect ( base , connectOptions [ 0 ] ) ) ; // [::::O====O====O====] // connectOptions = [0, 1, 1, 1] for ( var i = 0 ; i < options . handles ; i ++ ) { // Keep a list of all added handles. scope_Handles . push ( addOrigin ( base , i ) ) ; scope_HandleNumbers [ i ] = i ; scope_Connects . push ( addConnect ( base , connectOptions [ i + 1 ] ) ) ; } }
Add handles to the slider base.
Add handles to the slider base .