Permalink
Browse files

Added a class option for transforms.

  • Loading branch information...
zachleat committed Dec 28, 2012
1 parent 3511db8 commit c6e50e2063fa8690760d5b6fa3de3eceac404633
Showing with 3 additions and 2 deletions.
  1. +3 −2 js/widgets/panel.js
View
@@ -25,7 +25,8 @@ $.widget( "mobile.panel", $.mobile.widget, {
contentWrapOpenComplete: "ui-panel-content-wrap-open-complete",
pageBlock: "ui-panel-page-block",
pagePanel: "ui-page-panel",
- pageChildAnimations: "ui-page-panel-animate"
+ pageChildAnimations: "ui-page-panel-animate",
+ cssTransform3d: "ui-panel-3dtransforms"
},
animate: true,
theme: null,
@@ -99,7 +100,7 @@ $.widget( "mobile.panel", $.mobile.widget, {
}
if( $.support.cssTransform3d ){
- panelClasses += " ui-panel-3dtransforms";
+ panelClasses += " " + this.options.classes.cssTransform3d;
}
return panelClasses;
},

0 comments on commit c6e50e2

Please sign in to comment.