From: DAB Date: Wed, 24 Feb 2016 06:14:29 +0000 (-0600) Subject: Removed calls to deprecated jquery methods X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F8236%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Removed calls to deprecated jquery methods --- diff --git a/js/foundation/foundation.js b/js/foundation/foundation.js index eb2b54926..d20c57b7c 100644 --- a/js/foundation/foundation.js +++ b/js/foundation/foundation.js @@ -342,7 +342,7 @@ } } - S(window).load(function () { + S(window).on('load', function () { S(window) .trigger('resize.fndtn.clearing') .trigger('resize.fndtn.dropdown') diff --git a/js/foundation/foundation.topbar.js b/js/foundation/foundation.topbar.js index 51eb03de5..f05d21fbc 100644 --- a/js/foundation/foundation.topbar.js +++ b/js/foundation/foundation.topbar.js @@ -245,7 +245,7 @@ S(window).off('.topbar').on('resize.fndtn.topbar', self.throttle(function () { self.resize.call(self); - }, 50)).trigger('resize.fndtn.topbar').load(function () { + }, 50)).trigger('resize.fndtn.topbar').on('load', function () { // Ensure that the offset is calculated after all of the pages resources have loaded S(this).trigger('resize.fndtn.topbar'); });