Permalink
Browse files

Added version property to plugins that were missing them.

  • Loading branch information...
scottgonzalez committed Feb 3, 2011
1 parent 352ef4c commit 678ff6326a984d4ff8e7f69fd31304c2520e66f3
View
@@ -64,6 +64,9 @@ window.commonWidgetTests = function( widget, settings ) {
testWidgetDefaults( widget, settings.defaults );
testWidgetOverrides( widget );
testBasicUsage( widget );
+ test( "version", function() {
+ ok( "version" in $.ui[ widget ], "version property exists" );
+ });
};
}());
@@ -410,6 +410,7 @@ $.widget( "ui.autocomplete", {
});
$.extend( $.ui.autocomplete, {
+ version: "@VERSION",
escapeRegex: function( value ) {
return value.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
},
View
@@ -313,6 +313,8 @@ $.widget( "ui.button", {
}
});
+$.ui.button.version = "@VERSION";
+
$.widget( "ui.buttonset", {
options: {
items: ":button, :submit, :reset, :checkbox, :radio, a, :data(button)"
@@ -367,4 +369,6 @@ $.widget( "ui.buttonset", {
}
});
+$.ui.buttonset.version = "@VERSION";
+
}( jQuery ) );
View
@@ -245,4 +245,6 @@ $.widget("ui.menu", {
}
});
+$.ui.menu.version = "@VERSION";
+
}( jQuery ));
View
@@ -357,4 +357,6 @@ $.widget('ui.spinner', {
}
});
+$.ui.spinner.version = "@VERSION";
+
})(jQuery);
View
@@ -130,7 +130,8 @@ $.widget("ui.tooltip", {
this._trigger( "close", event );
}
-
});
+$.ui.tooltip.version = "@VERSION";
+
})(jQuery);

0 comments on commit 678ff63

Please sign in to comment.