The module is now loaded in the 'top' queue instead of the 'bottom'
one, so the <body> tag isn't loaded when the RTL detection is done.
Use the <html> tag's 'dir' attribute instead.
Bug: 50196
Change-Id: I6e277a9503a1e6003bc7bf9f9468ed7b35552e60
* Collapsible tabs jQuery Plugin
*/
( function ( $ ) {
* Collapsible tabs jQuery Plugin
*/
( function ( $ ) {
- var rtl = $( 'body' ).is( '.rtl' );
+ var rtl = $( 'html' ).attr( 'dir' ) === 'rtl';
$.fn.collapsibleTabs = function ( options ) {
// return if the function is called on an empty jquery object
if ( !this.length ) {
$.fn.collapsibleTabs = function ( options ) {
// return if the function is called on an empty jquery object
if ( !this.length ) {