Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions page/upgrade-guide/1.12.md
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,26 @@ $( "#dialog" ).dialog( {

This will add the `ui-corner-top` and `awesome-fade-class` classes to the element which has the `ui-dialog` class, while also removing the default `ui-corner-all` class from the element which has the `ui-dialog-titlebar` class.

### Added support for widget mixins

[(#12601)](http://bugs.jqueryui.com/ticket/12601) The widget factory now supports mixins so that you can have common behaviors shared across many widgets in scenarios where inheritance doesn't make sense. Until now, this required manually extending the widget prototype with the mixins. Under the hood, this is all that's happening, but there's now dedicated syntax to make calls to the widget factory a little cleaner.

Old:
```js
$.widget( "demo.widget", $.extend( {}, someMixin, someOtherMixin, {

// Widget prototype
} );
```

New:
```js
$.widget( "demo.widget", [ someMixin, someOtherMixin, {

// Widget prototype
} ] );
```

## Effects

### Converted transfer effect to a jQuery plugin method
Expand Down