// TODO: use ui-accordion-header-active class and fix styling
$.widget( "ui.accordion", {
+ version: "@VERSION",
options: {
active: 0,
animated: "slide",
});
$.extend( $.ui.accordion, {
- version: "@VERSION",
animations: {
slide: function( options, additions ) {
var showOverflow = options.toShow.css( "overflow" ),
var requestIndex = 0;
$.widget( "ui.autocomplete", {
+ version: "@VERSION",
defaultElement: "<input>",
options: {
appendTo: "body",
});
$.extend( $.ui.autocomplete, {
- version: "@VERSION",
escapeRegex: function( value ) {
return value.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
},
};
$.widget( "ui.button", {
+ version: "@VERSION",
defaultElement: "<button>",
options: {
disabled: null,
}
});
-$.ui.buttonset.version = "@VERSION";
-
}( jQuery ) );
};
$.widget("ui.dialog", {
+ version: "@VERSION",
options: {
autoOpen: true,
buttons: {},
});
$.extend($.ui.dialog, {
- version: "@VERSION",
-
uuid: 0,
maxZ: 0,
(function( $, undefined ) {
$.widget("ui.draggable", $.ui.mouse, {
+ version: "@VERSION",
widgetEventPrefix: "drag",
options: {
addClasses: true,
});
-$.extend($.ui.draggable, {
- version: "@VERSION"
-});
-
$.ui.plugin.add("draggable", "connectToSortable", {
start: function(event, ui) {
(function( $, undefined ) {
$.widget("ui.droppable", {
+ version: "@VERSION",
widgetEventPrefix: "drop",
options: {
accept: '*',
});
-$.extend($.ui.droppable, {
- version: "@VERSION"
-});
-
$.ui.intersect = function(draggable, droppable, toleranceMode) {
if (!droppable.offset) return false;
var idIncrement = 0;
$.widget("ui.menu", {
+ version: "@VERSION",
defaultElement: "<ul>",
delay: 150,
options: {
}
});
-$.ui.menu.version = "@VERSION";
-
}( jQuery ));
// TODO when mixing clicking menus and keyboard navigation, focus handling is broken
// there has to be just one item that has tabindex
$.widget( "ui.menubar", {
+ version: "@VERSION",
options: {
buttons: false,
menuIcon: false
});
$.widget("ui.mouse", {
+ version: "@VERSION",
options: {
cancel: ':input,option',
distance: 1,
var idIncrement = 0;
$.widget( "ui.popup", {
+ version: "@VERSION",
options: {
position: {
my: "left top",
(function( $, undefined ) {
$.widget( "ui.progressbar", {
+ version: "@VERSION",
options: {
value: 0,
max: 100
}
});
-$.extend( $.ui.progressbar, {
- version: "@VERSION"
-});
-
})( jQuery );
(function( $, undefined ) {
$.widget("ui.resizable", $.ui.mouse, {
+ version: "@VERSION",
widgetEventPrefix: "resize",
options: {
alsoResize: false,
});
-$.extend($.ui.resizable, {
- version: "@VERSION"
-});
-
/*
* Resizable Extensions
*/
(function( $, undefined ) {
$.widget("ui.selectable", $.ui.mouse, {
+ version: "@VERSION",
options: {
appendTo: 'body',
autoRefresh: true,
});
-$.extend($.ui.selectable, {
- version: "@VERSION"
-});
-
})(jQuery);
var numPages = 5;
$.widget( "ui.slider", $.ui.mouse, {
-
+ version: "@VERSION",
widgetEventPrefix: "slide",
options: {
});
-$.extend( $.ui.slider, {
- version: "@VERSION"
-});
-
}(jQuery));
(function( $, undefined ) {
$.widget("ui.sortable", $.ui.mouse, {
+ version: "@VERSION",
widgetEventPrefix: "sort",
options: {
appendTo: "parent",
});
-$.extend($.ui.sortable, {
- version: "@VERSION"
-});
-
})(jQuery);
(function( $ ) {
$.widget( "ui.spinner", {
+ version: "@VERSION",
defaultElement: "<input>",
widgetEventPrefix: "spin",
options: {
}
});
-$.ui.spinner.version = "@VERSION";
-
}( jQuery ) );
}
$.widget( "ui.tabs", {
+ version: "@VERSION",
options: {
active: null,
collapsible: false,
}
});
-$.extend( $.ui.tabs, {
- version: "@VERSION"
-});
-
// DEPRECATED
if ( $.uiBackCompat !== false ) {
var increments = 0;
$.widget( "ui.tooltip", {
+ version: "@VERSION",
options: {
tooltipClass: null,
items: "[title]",
}
});
-$.ui.tooltip.version = "@VERSION";
-
}( jQuery ) );
if ( arguments.length ) {
this._createWidget( options, element );
}
- }, $[ namespace ][ name ] );
+ }, $[ namespace ][ name ], { version: prototype.version } );
var basePrototype = new base();
// we need to make the options hash a property directly on the new instance