Ticket #4522 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

slider: values option doesn't work for setting, values method does

Reported by: rdworth Owned by:
Priority: major Milestone: 1.8
Component: ui.slider Version: 1.7.1
Keywords: Cc:
Blocking: Blocked by:

Description (last modified by rdworth) (diff)

The following code

$("#slider").slider("option", "values", [25, 75]);

should work just as well as

$("#slider").slider("values", 0, 25); $("#slider").slider("values", 1, 75);

Currently, only the latter works.

Also, it would be nice if the values method accepted an array, just like the values option. This doesn't work:

$("#slider").slider("values", [25, 75]);

but would be nice.

Change History

comment:1 Changed 6 years ago by rdworth

  • Description modified (diff)

comment:2 Changed 6 years ago by rdworth

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in r3364

Note: See TracTickets for help on using tickets.