From 13f807086523d2db0ecf1697f138198550a62cc4 Mon Sep 17 00:00:00 2001 From: DAB Date: Wed, 24 Feb 2016 00:14:29 -0600 Subject: [PATCH] Removed calls to deprecated jquery methods --- js/foundation/foundation.js | 2 +- js/foundation/foundation.topbar.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'); }); -- 2.47.2