From: Damian Frizzi Date: Tue, 11 Nov 2014 14:58:09 +0000 (+0100) Subject: Update foundation.topbar.js X-Git-Tag: v5.5.0~47^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F6022%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Update foundation.topbar.js --- diff --git a/js/foundation/foundation.topbar.js b/js/foundation/foundation.topbar.js index 24539f45d..884b0086a 100644 --- a/js/foundation/foundation.topbar.js +++ b/js/foundation/foundation.topbar.js @@ -229,11 +229,11 @@ } }); - S(window).off(".topbar").on("resize.fndtn.topbar", self.throttle(function() { + S(window).off('.topbar').on('resize.fndtn.topbar', self.throttle(function() { self.resize.call(self); - }, 50)).trigger("resize").trigger("resize.fndtn.topbar").load(function(){ + }, 50)).trigger('resize').trigger('resize.fndtn.topbar').load(function(){ // Ensure that the offset is calculated after all of the pages resources have loaded - S(this).trigger("resize.fndtn.topbar"); + S(this).trigger('resize.fndtn.topbar'); }); S('body').off('.topbar').on('click.fndtn.topbar', function (e) {