]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Remove references to deprecat .load() function
authorCorrine Olson <corrine.olson@careerbuilder.com>
Fri, 10 Jun 2016 17:59:59 +0000 (13:59 -0400)
committerCorrine Olson <corrine.olson@careerbuilder.com>
Fri, 10 Jun 2016 17:59:59 +0000 (13:59 -0400)
dist/foundation.js
dist/plugins/foundation.interchange.js
dist/plugins/foundation.util.triggers.js
js/foundation.interchange.js
js/foundation.util.triggers.js

index 63b04ace2d90d27642897d06554070c0ba185cf3..4ca8db5e18c50df9626c7028cb0518dbbdfe2c69 100644 (file)
   * @function
   * @private
   */
-  $(window).load(function () {
+  $(window).on("load", function () {
     checkListeners();
   });
 
@@ -4766,7 +4766,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
 
         // Replacing images
         if (this.$element[0].nodeName === 'IMG') {
-          this.$element.attr('src', path).load(function () {
+          this.$element.attr('src', path).on("load", function () {
             _this.currentPath = path;
           }).trigger(trigger);
         }
index 7531ccde542917363c54090a772f360416e807db..728b8af3097aab60112582da893b91151a03cd32 100644 (file)
@@ -164,7 +164,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
 
         // Replacing images
         if (this.$element[0].nodeName === 'IMG') {
-          this.$element.attr('src', path).load(function () {
+          this.$element.attr('src', path).on("load", function () {
             _this.currentPath = path;
           }).trigger(trigger);
         }
index 17eb7cbc3cf32094e10d37258dc40a825627619a..a8c67bede278283b287ba2eb192385e860f7fc29 100644 (file)
@@ -62,7 +62,7 @@
   * @function
   * @private
   */
-  $(window).load(function () {
+  $(window).on("load", function () {
     checkListeners();
   });
 
index 1a15ff01a35962c6911575ddf4e84e4e542cc2ce..4c74c1831829be3be36ec97925f61910ac7dad82 100644 (file)
@@ -139,7 +139,7 @@ class Interchange {
 
     // Replacing images
     if (this.$element[0].nodeName === 'IMG') {
-      this.$element.attr('src', path).load(function() {
+      this.$element.attr('src', path).on("load", function() {
         _this.currentPath = path;
       })
       .trigger(trigger);
index c904c9946cc08251be84d9237248c6377c68f417..4f0fd735029907dd2cb9eefdd0b184bec8acc558 100644 (file)
@@ -63,7 +63,7 @@ $(document).on('focus.zf.trigger blur.zf.trigger', '[data-toggle-focus]', functi
 * @function
 * @private
 */
-$(window).load(() => {
+$(window).on("load", () => {
   checkListeners();
 });