nl_tokens: / * Sets the increment rounding for the slider see input parameters section for more information .
pl_tokens: function ( rounding ) { var $this = this ; if ( typeof rounding === 'string' && rounding . indexOf ( '{' ) > - 1 ) { // probably a json string rounding = $ . parseJSON ( rounding ) ; } $this . data ( 'rounding' , rounding ) ; // build an array of roundings and sort it by value to facilitate search // when the range is going to be set. var roundings_array = [ ] ; if ( typeof rounding === 'object' ) { // initial object has the form { value : range } var rounding_value ; for ( rounding_value in rounding ) { // skip_javascript_test if ( rounding . hasOwnProperty ( rounding_value ) ) { var rounding_range = rounding [ rounding_value ] ; roundings_array . push ( { 'range' : rounding_range , 'value' : rounding_value } ) ; } } // now sort it by rounding range roundings_array . sort ( function ( a , b ) { return a . range - b . range ; } ) ; $this . <mask> ( 'rounding_ranges' , roundings_array ) ; } else { $this . removeData ( 'rounding_ranges' ) ; } return $this ; }