From e016cfa6b7add0373148303ca64b13f53216b536 Mon Sep 17 00:00:00 2001 From: scottjehl Date: Sat, 18 Sep 2010 10:44:46 -0400 Subject: [PATCH] make sure globalnav is only called once on a div --- js/jQuery.mobile.globalnav.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/jQuery.mobile.globalnav.js b/js/jQuery.mobile.globalnav.js index 0c9cfc29..bae7b3ac 100755 --- a/js/jQuery.mobile.globalnav.js +++ b/js/jQuery.mobile.globalnav.js @@ -7,6 +7,7 @@ (function($){ $.fn.globalnav = function(settings){ return $(this).each(function(){ //there should only ever be one of these... is each necessary? + if($(this).find('.ui-globalnav').length){ return; } var o = $.extend({ fixedAs: 'footer' },settings);