Skip to content

Commit ce5ce10

Browse files
author
scottjehl
committed
A little simplification in the page plugin
1 parent a3487e6 commit ce5ce10

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

js/jquery.mobile.page.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,12 @@ $.widget( "mobile.page", $.mobile.widget, {
1414
},
1515

1616
_create: function() {
17-
var $elem = this.element,
18-
o = this.options;
17+
18+
this.element.addClass( "ui-page ui-body-" + this.options.theme );
1919

2020
if ( this._trigger( "beforeCreate" ) === false ) {
2121
return;
2222
}
23-
24-
$elem.addClass( "ui-page ui-body-" + o.theme );
2523
}
2624
});
2725

0 commit comments

Comments
 (0)