adding version property to all ui components

This commit is contained in:
Jörn Zaefferer 2008-10-05 16:29:21 +00:00
parent b53e2e5c7e
commit 923d1ec3bb
14 changed files with 14 additions and 0 deletions

View File

@ -265,6 +265,7 @@ function findActive(headers, selector) {
}
$.extend($.ui.accordion, {
version: "@VERSION",
defaults: {
selectedClass: "selected",
alwaysOpen: true,

View File

@ -462,6 +462,7 @@ $.widget("ui.colorpicker", {
});
$.extend($.ui.colorpicker, {
version: "@VERSION",
defaults: {
eventName: 'click',
color: 'ff0000',

View File

@ -268,6 +268,7 @@ $.widget.defaults = {
/** jQuery UI core **/
$.ui = {
version: "@VERSION",
// $.ui.plugin is deprecated. Use the proxy pattern instead.
plugin: {
add: function(module, option, set) {

View File

@ -1735,5 +1735,6 @@ $.fn.datepicker = function(options){
$.datepicker = new Datepicker(); // singleton instance
$.datepicker.initialized = false;
$.datepicker.uuid = new Date().getTime();
$.datepicker.version = "@VERSION";
})(jQuery);

View File

@ -394,6 +394,7 @@ $.widget("ui.dialog", {
});
$.extend($.ui.dialog, {
version: "@VERSION",
defaults: {
autoOpen: true,
autoResize: true,

View File

@ -350,6 +350,7 @@ $.widget("ui.draggable", $.extend({}, $.ui.mouse, {
}));
$.extend($.ui.draggable, {
version: "@VERSION",
defaults: {
appendTo: "parent",
axis: false,

View File

@ -130,6 +130,7 @@ $.widget("ui.droppable", {
});
$.extend($.ui.droppable, {
version: "@VERSION",
defaults: {
disabled: false,
tolerance: 'intersect',

View File

@ -163,6 +163,7 @@ $.widget("ui.magnifier", {
});
$.extend($.ui.magnifier, {
version: "@VERSION",
defaults: {
distance: 150,
magnification: 2,

View File

@ -188,6 +188,7 @@ $.widget("ui.progressbar", {
plugins: {}
});
$.ui.progressbar.version = "@VERSION";
$.ui.progressbar.defaults = {
width: 300,
duration: 1000,

View File

@ -516,6 +516,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
}));
$.extend($.ui.resizable, {
version: "@VERSION",
defaults: {
cancel: ":input",
distance: 1,

View File

@ -252,6 +252,7 @@ $.widget("ui.selectable", $.extend({}, $.ui.mouse, {
}));
$.extend($.ui.selectable, {
version: "@VERSION",
defaults: {
distance: 1,
delay: 0,

View File

@ -737,6 +737,7 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
$.extend($.ui.sortable, {
getter: "serialize toArray",
version: "@VERSION",
defaults: {
helper: "original",
tolerance: "guess",

View File

@ -392,6 +392,7 @@ $.widget('ui.spinner', {
});
$.extend($.ui.spinner, {
version: "@VERSION",
defaults: {
decimals: 0,
stepping: 1,

View File

@ -514,6 +514,7 @@ $.widget("ui.tabs", {
}
});
$.ui.tabs.version = "@VERSION";
$.ui.tabs.defaults = {
// basic setup
unselect: false,