make sure globalnav is only called once on a div

This commit is contained in:
scottjehl 2010-09-18 10:44:46 -04:00
parent 60deedf499
commit e016cfa6b7

View file

@ -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);