]> source.dussan.org Git - jquery-ui.git/commitdiff
All: Define defaultElement for non-div widgets.
authorScott González <scott.gonzalez@gmail.com>
Sun, 23 Jan 2011 22:55:53 +0000 (17:55 -0500)
committerScott González <scott.gonzalez@gmail.com>
Sun, 23 Jan 2011 22:55:53 +0000 (17:55 -0500)
ui/jquery.ui.autocomplete.js
ui/jquery.ui.button.js
ui/jquery.ui.menu.js
ui/jquery.ui.spinner.js

index 1342f7648889ac2d6136b68f89240d4e64385a7c..e62ea93fe00d6cf4fa6fd504660b303636d605aa 100644 (file)
@@ -16,6 +16,7 @@
 (function( $, undefined ) {
 
 $.widget( "ui.autocomplete", {
+       defaultElement: "<input>",
        options: {
                appendTo: "body",
                delay: 300,
index b1d060a42ecf8d11566c7b2bdf6dc0b803c94f71..8f63ec57a650fc61c58fd60943d8940beacba556 100644 (file)
@@ -43,6 +43,7 @@ var lastActive,
        };
 
 $.widget( "ui.button", {
+       defaultElement: "<button>",
        options: {
                disabled: null,
                text: true,
index 842557da8deeadf3e65b47ad6933dd373456481c..c64057ee09f3bf7468b55cc9074f8e792dcb2594 100644 (file)
@@ -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++;
index 8445db74e5ceec9a930b8cfe680696c49bda172b..c8a76f4cf239fc1a2b64e6a4d1f80d49e72bcef5 100644 (file)
@@ -14,6 +14,7 @@
 (function($) {
 
 $.widget('ui.spinner', {
+       defaultElement: "<input>",
        options: {
                incremental: true,
                max: null,