aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-01-23 17:55:53 -0500
committerScott González <scott.gonzalez@gmail.com>2011-01-23 17:55:53 -0500
commit29bfb86ce2e192dae456bf15655c25cb469ad977 (patch)
tree0a04105d04814b8e4cdbfb018bb1c567598abe04 /ui
parent8d1713dd8ed55e6c2d4e5f96dfcdf9acd06466f7 (diff)
downloadjquery-ui-29bfb86ce2e192dae456bf15655c25cb469ad977.tar.gz
jquery-ui-29bfb86ce2e192dae456bf15655c25cb469ad977.zip
All: Define defaultElement for non-div widgets.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.autocomplete.js1
-rw-r--r--ui/jquery.ui.button.js1
-rw-r--r--ui/jquery.ui.menu.js1
-rw-r--r--ui/jquery.ui.spinner.js1
4 files changed, 4 insertions, 0 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js
index 1342f7648..e62ea93fe 100644
--- a/ui/jquery.ui.autocomplete.js
+++ b/ui/jquery.ui.autocomplete.js
@@ -16,6 +16,7 @@
(function( $, undefined ) {
$.widget( "ui.autocomplete", {
+ defaultElement: "<input>",
options: {
appendTo: "body",
delay: 300,
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js
index b1d060a42..8f63ec57a 100644
--- a/ui/jquery.ui.button.js
+++ b/ui/jquery.ui.button.js
@@ -43,6 +43,7 @@ var lastActive,
};
$.widget( "ui.button", {
+ defaultElement: "<button>",
options: {
disabled: null,
text: true,
diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js
index 842557da8..c64057ee0 100644
--- a/ui/jquery.ui.menu.js
+++ b/ui/jquery.ui.menu.js
@@ -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++;
diff --git a/ui/jquery.ui.spinner.js b/ui/jquery.ui.spinner.js
index 8445db74e..c8a76f4cf 100644
--- a/ui/jquery.ui.spinner.js
+++ b/ui/jquery.ui.spinner.js
@@ -14,6 +14,7 @@
(function($) {
$.widget('ui.spinner', {
+ defaultElement: "<input>",
options: {
incremental: true,
max: null,