Documentation

UI/Changelog/1.6

From jQuery JavaScript Library

Jump to: navigation, search

Contents

Summary

What was originally planned as the 1.6 release was moved over to the 1.7 release. The final 1.6 release is 1.6rc2 plus fixes. This is a legacy compatibility release for those still using jQuery 1.2.6.

Core

  • Widget factory: Added trigger method for triggering callbacks and events. (r436)
  • cleaned up $.ui.hasScroll(). (r446)
  • Fixed: UI plugins should support metadata (#3187)
  • Fixed: prevent exposure of internal methods (#3188)
  • Fixed: define key constants in ui.core.js (#3233)
  • Fixed: Add option method to widgets (#3257)
  • Fixed: drop is invoked as many times as droppable has been invoked (#3275)
  • Fixed: Return on enableSelection and disableSelection (#3174)
  • Fixed: .remove() doesn't call the plugin's destroy method (#3457)
  • Fixed: Remove .ariaRole() and .ariaState() (#3529)
  • Fixed: .removeAttr() needs to support ARIA properties (#3562)
  • Fixed: document elements can't retrieve mouse down/up event when dragging layer (#3552)
  • Removed names from ui.core.js as all contribution credit is given in AUTHORS.txt and http://ui.jquery.com/about (r1078)

Interactions

Draggable

  • added: more advanced features for the snap option - you can now pass in a object instead of a bolean into "snap", possible keys are the callbacks snap/release (which both receive ui.snapItem) and items (jQuery selector, defaults to :data(draggable)) (r468)
  • added: since revert no longer checks for numbers, introduced a revertDuration option (r484)
  • added: cssNamespace option, if set to false/null, it won't add a class to the element (r489)
  • fixed: overflow calculation in the positioning methods (r491)
  • fixed: issue when scroll was set to true, and therefore droppables inside changed their position as well (r492)
  • fixed: IE scrolling but with overflowing containers and appendTo being used (r493)
  • Fixed: iframeFix in draggable (#3161)
  • Fixed: Put version numbers inside of individual files (#3284)
  • Fixed: Containment (resizable and draggable) not working when container has overflow:hidden (#3328)
  • Fixed: Sortables do not work on sorted elements that are also resizable (#3164)
  • Fixed: Draggable revert: option can be a callback (#3175)
  • Fixed: iframeFix in draggable (#3161)
  • Fixed: Containment (resizable and draggable) not working when container has overflow:hidden (#3328)
  • Fixed: Sortables do not work on sorted elements that are also resizable (#3164)
  • Fixed: Draggable revert: option can be a callback (#3175)
  • changed default for scroll option to true (r1324)
  • made connectToSortable work fine with helper: 'original' (by removing top/left properties at sort end) (r1336)
  • fixed positioning issue with relative positioned elements relative to the body during scroll (r1313)
  • containment doesn't respect margins anymore, Sortable elements not staying inside container (#3538, r1325)
  • Fixed: Draggable revert: option can be a callback (#3175)

Droppable

  • added: cssNamespace option, if set to false/null, it won't add a class to the element (r489)
  • Fixed: accept.droppable not an option (#3386)
  • fixed missing default for option 'accept' (set to "*" = everything) (r1319)

Resizable

  • Fixed: Sortables do not work on sorted elements that are also resizable (#3164)
  • Fixed: Resizable aspectRatio is switched. Should be width/height (#3450)
  • Fixed: Resizable css cursor not getting applied (#3480)
  • Fixed: Resizable errors when alsoResize option is a jQuery object (#3693)
  • Fixed: Resizable: all classes added should have 'ui-' prefix, 'proxy' should be 'ui-resizable-helper' (#3708)
  • Fixed: Resizable containment fix (#3714)

Selectable

  • Fixed: Ctrl-Select should use Cmd key on Mac (#3169)
  • Fixed: prevent exposure of internal methods (#3205)

Sortable

  • Fixed: prevent exposure of internal methods (#3209)
  • Fixed: Sortables do not work on sorted elements that are also resizable (#3164)
  • Fixed: createHelper is not passing the event object (#3454)
  • Fixed: ui.sortable - IE6+ doesn't fire click-event after sorting (#3488)
  • Fixed: sortable with default radio (prev ticket 2930) (#3466)
  • Fixed: a way to cancel a sort in sortable (#3283)
  • Added: Method to cancel a sortable attempt (#3402)
  • Fixed: Events removed on sortable elements (#3541)
  • fixed containment issue (with 'parent', height was miscalculated due to wrong append order) (r1095)
  • fixed issues with _convertPositionTo, missed from latest re-factor, miscalculated the absolute position including scroll (r1096)
  • fixed connectToSortable option, wasn't working with Arrays as described in the documentation (r1098)
  • accurateIntersection using outerWidth/outerHeight (r1170)
  • removed default tolerance "guess" for the simplier (and better working) default mode, and the plain "pointer" intersection (r1171)
  • merged draggable fixes into sortables (r1313, r1325) (r1326)

Widgets

Accordion

  • Fixed: prevent exposure of internal methods (#3194)

Datepicker

  • Add day-of-year to format and parse date routines. Correct status display (r447)
  • Fixed: Datepicker Italian localization (#3167)
  • Fixed: invalid increment operand (#3434)
  • Fixed #3610. Error in French l18n file. (r1051)
  • Fixed #3598. Datepicker Japanese translation replacement (r1052)
  • Escape text to prevent date info substitution (r1053)
  • Fixed #3610. Error in French l18n file. (r1054)
  • Fixed #3642. firstDay displays day names incorrectly. (r1055)

Dialog

  • Fixed: problem with auto margins in IE. (3086)
  • Fixed: Force dialog titlebars to have a full line height when no title is provided. (3013)
  • Fixed: Modal dialog not working correctly on Opera 9.51 (#3076)
  • Fixed: prevent exposure of internal methods (#3198)
  • Fixed: closeOnEscape doesn't work on modal dialogs (#3253)
  • Fixed: Title of dialogs (#3259)
  • Fixed: Tabbing stops in modal dialog (#3123)
  • Fixed: Focus not going to Modal Dialog (#3327)
  • Fixed: fixed-size dialogs still have resizable border (#3220)
  • Fixed: fix handling on non-draggable dialgos (#3389)
  • Fixed: add beforeClose option (#3087)
  • Fixed: modal dialogs aren't greedy enough with element focus (#3350)
  • Fixed: Cannot select scrollbars inside dialog in Opera 9.51 (#3193)
  • Fixed: Remove .ariaRole() and .ariaState() (#3529)
  • Fixed #3637: Added role of button to close link. (r1045)
  • Fixed #3638: Added closeText option (default 'close'). (r1090)
  • Fixed #3564: Proper positioning in Opera. (r1183)
  • Fixed #3221: Use outerWidth/Height for positioning. (r1184)

Slider

  • Fixed: fix for arrow key operation (3801)
  • Fixed: prevent exposure of internal methods (#3206)
  • Fixed: prevent exposure of internal methods (#3188)
  • Fixed: Slider: keyboard event not swalled, causes scrolling (#3342)
  • Fixed: Slider fire beforeunload event (#3228)
  • Fixed: Callbacks in Slider (#3465)

Tabs

  • Fixed: Selected index becomes off by one when removing tabs (#3065)
  • Fixed: prevent exposure of internal methods (#3208)
  • Fixed: cookie value is not checked on init + selected tab is not stored in cookie on init (#3015)

Effects

Core

  • Fixed: Replace global jQuery with dollar sign (#3596)

Individual effects

Highlight

  • Fixed: Replace global jQuery with dollar sign (#3596)