Switch to using var to avoid hitting the DOM

This commit is contained in:
Braad
2015-05-22 12:41:35 -07:00
parent 851f5ff19d
commit 03de45dadd
+1 -1
View File
@@ -61,7 +61,7 @@ jQuery( document ).ready( function( $ ) {
}
// Allow the use of custom text when using the 'big-button' mobile nav style.
if ( $target.is( 'nav' ) && $( 'body' ).hasClass( 'big-button-nav-toggle' ) ) {
if ( $target.is( 'nav' ) && $body.hasClass( 'big-button-nav-toggle' ) ) {
navText = trestle_vars['mobile_nav_text'];
} else {
navText = 'Toggle';