File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 571571 }
572572
573573 for ( var id in elems ) {
574- if ( ( ! legendOptions . slices [ i ] . min || elems [ id ] . value >= legendOptions . slices [ i ] . min )
575- && ( ! legendOptions . slices [ i ] . max || elems [ id ] . value < legendOptions . slices [ i ] . max )
574+ if ( ( typeof legendOptions . slices [ i ] . min == 'undefined' || elems [ id ] . value >= legendOptions . slices [ i ] . min )
575+ && ( typeof legendOptions . slices [ i ] . max == 'undefined' || elems [ id ] . value < legendOptions . slices [ i ] . max )
576576 ) {
577577 ( function ( id ) {
578578 if ( ! label . hidden ) {
730730 */
731731 $ . fn . mapael . getLegendSlice = function ( value , legend ) {
732732 for ( var i = 0 , length = legend . slices . length ; i < length ; ++ i ) {
733- if ( ( ! legend . slices [ i ] . min || value >= legend . slices [ i ] . min )
734- && ( ! legend . slices [ i ] . max || value < legend . slices [ i ] . max )
733+ if ( ( typeof legend . slices [ i ] . min == 'undefined' || value >= legend . slices [ i ] . min )
734+ && ( typeof legend . slices [ i ] . max == 'undefined' || value < legend . slices [ i ] . max )
735735 ) {
736736 return legend . slices [ i ] ;
737737 }
You can’t perform that action at this time.
0 commit comments