whitespace and missing semicolon fix

This commit is contained in:
John Bender 2011-01-30 00:19:15 -08:00
parent 202ed5ff2c
commit badefe1ee1

View file

@ -3,7 +3,7 @@
* Copyright (c) jQuery Project
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*/
*/
(function($, undefined ) {
$.fn.buttonMarkup = function( options ){
@ -22,18 +22,18 @@ $.fn.buttonMarkup = function( options ){
// if not, try to find closest theme container
if ( !o.theme ) {
var themedParent = el.closest("[class*='ui-bar-'],[class*='ui-body-']");
var themedParent = el.closest("[class*='ui-bar-'],[class*='ui-body-']");
o.theme = themedParent.length ?
/ui-(bar|body)-([a-z])/.exec( themedParent.attr("class") )[2] :
"c";
}
buttonClass = "ui-btn ui-btn-up-" + o.theme;
if ( o.inline ) {
buttonClass += " ui-btn-inline";
}
if ( o.icon ) {
o.icon = "ui-icon-" + o.icon;
o.iconpos = o.iconpos || "left";
@ -41,27 +41,27 @@ $.fn.buttonMarkup = function( options ){
iconClass = "ui-icon " + o.icon;
if ( o.shadow ) {
iconClass += " ui-icon-shadow"
iconClass += " ui-icon-shadow";
}
}
if ( o.iconpos ) {
buttonClass += " ui-btn-icon-" + o.iconpos;
if ( o.iconpos == "notext" && !el.attr("title") ) {
el.attr( "title", el.text() );
}
}
if ( o.corners ) {
if ( o.corners ) {
buttonClass += " ui-btn-corner-all";
innerClass += " ui-btn-corner-all";
}
if ( o.shadow ) {
buttonClass += " ui-shadow";
}
el
.attr( "data-theme", o.theme )
.addClass( buttonClass );
@ -71,7 +71,7 @@ $.fn.buttonMarkup = function( options ){
"</D>").replace(/D/g, o.wrapperEls);
el.wrapInner( wrap );
});
});
};
$.fn.buttonMarkup.defaults = {