Skip to content

Commit

Permalink
All: Define defaultElement for non-div widgets.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Jan 23, 2011
1 parent 8d1713d commit 29bfb86
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions ui/jquery.ui.autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
(function( $, undefined ) {

$.widget( "ui.autocomplete", {
defaultElement: "<input>",
options: {
appendTo: "body",
delay: 300,
Expand Down
1 change: 1 addition & 0 deletions ui/jquery.ui.button.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ var lastActive,
};

$.widget( "ui.button", {
defaultElement: "<button>",
options: {
disabled: null,
text: true,
Expand Down
1 change: 1 addition & 0 deletions ui/jquery.ui.menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
var idIncrement = 0;

$.widget("ui.menu", {
defaultElement: "<ul>",
_create: function() {
var self = this;
this.menuId = this.element.attr( "id" ) || "ui-menu-" + idIncrement++;
Expand Down
1 change: 1 addition & 0 deletions ui/jquery.ui.spinner.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
(function($) {

$.widget('ui.spinner', {
defaultElement: "<input>",
options: {
incremental: true,
max: null,
Expand Down

0 comments on commit 29bfb86

Please sign in to comment.