Skip to content
Permalink
Browse files

All: Define defaultElement for non-div widgets.

  • Loading branch information...
scottgonzalez committed Jan 23, 2011
1 parent 8d1713d commit 29bfb86ce2e192dae456bf15655c25cb469ad977
Showing with 4 additions and 0 deletions.
  1. +1 −0 ui/jquery.ui.autocomplete.js
  2. +1 −0 ui/jquery.ui.button.js
  3. +1 −0 ui/jquery.ui.menu.js
  4. +1 −0 ui/jquery.ui.spinner.js
@@ -16,6 +16,7 @@
(function( $, undefined ) {

$.widget( "ui.autocomplete", {
defaultElement: "<input>",
options: {
appendTo: "body",
delay: 300,
@@ -43,6 +43,7 @@ var lastActive,
};

$.widget( "ui.button", {
defaultElement: "<button>",
options: {
disabled: null,
text: true,
@@ -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++;
@@ -14,6 +14,7 @@
(function($) {

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

0 comments on commit 29bfb86

Please sign in to comment.
You can’t perform that action at this time.