aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
Diffstat (limited to 'library')
-rw-r--r--library/foundation/js/foundation.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/foundation/js/foundation.js b/library/foundation/js/foundation.js
index 63b04ace2..8570bdd16 100644
--- a/library/foundation/js/foundation.js
+++ b/library/foundation/js/foundation.js
@@ -1585,7 +1585,7 @@
* @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);
}