]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix some breaking changes from jquery 3 feature/jquery-3-support
authorKevin Ball <kmball11@gmail.com>
Fri, 22 Jul 2016 17:03:41 +0000 (10:03 -0700)
committerKevin Ball <kmball11@gmail.com>
Fri, 22 Jul 2016 17:03:41 +0000 (10:03 -0700)
js/foundation.interchange.js
js/foundation.util.triggers.js
package.json

index 1a15ff01a35962c6911575ddf4e84e4e542cc2ce..2e5b969a623356cdba71494b8fa1bef54ed6ce3b 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..4308b152798cdc305699637a24ec6147d72fcb60 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();
 });
 
index 2c91ea4f5dacbfa6e3c58467db4417df724c3df0..b4a66ca638f78ec0abce60e299d3989138c59ea2 100644 (file)
@@ -16,7 +16,7 @@
     "deploy:docs": "gulp deploy:docs"
   },
   "dependencies": {
-    "jquery": "^2.2.0",
+    "jquery": "^3.0",
     "what-input": "^2.0.0"
   },
   "license": "MIT",