]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Removed calls to deprecated jquery methods 8228/head 8236/head
authorDAB <dab@dab.la>
Wed, 24 Feb 2016 06:14:29 +0000 (00:14 -0600)
committerDAB <dab@dab.la>
Wed, 24 Feb 2016 06:14:29 +0000 (00:14 -0600)
js/foundation/foundation.js
js/foundation/foundation.topbar.js

index eb2b549264bf4b8fdd9424c63ea6e96c05f2a768..d20c57b7cb4fee44694b49f1782d0468f756c7b5 100644 (file)
         }
       }
 
-      S(window).load(function () {
+      S(window).on('load', function () {
         S(window)
           .trigger('resize.fndtn.clearing')
           .trigger('resize.fndtn.dropdown')
index 51eb03de535ef712f291ff47eb0f9019a88bca32..f05d21fbc8f565c39231b7db6ca17f02aeea991b 100644 (file)
 
       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');
       });