From 99b317d6c42cdd7149d091c6b479b4e4445d68be Mon Sep 17 00:00:00 2001 From: Surinder Kumar Date: Sun, 2 Jul 2017 02:29:53 +0530 Subject: [PATCH] Fixes: Replace depreciated load() method with the one supported with latest jquery version 3.2.1 Replace `this.$iFrame.load(function () {});` with `this.$iFrame.on('load', function () {});` --- Code/iframe.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Code/iframe.js b/Code/iframe.js index 62072651..4ddbd713 100755 --- a/Code/iframe.js +++ b/Code/iframe.js @@ -79,7 +79,7 @@ define([ this.$iFrame.hover(this.__onHoverEnter.bind(this), this.__onHoverExit.bind(this)); var self = this; - this.$iFrame.load(function () { + this.$iFrame.on('load', function () { for (var i = 0; i < self._onLoadFuncs.length; ++i) { self._onLoadFuncs[i](); } @@ -111,7 +111,7 @@ define([ this.$iFrame.hover(this.__onHoverEnter.bind(this), this.__onHoverExit.bind(this)); var self = this; - this.$iFrame.load(function () { + this.$iFrame.on('load', function () { for (var i = 0; i < self._onLoadFuncs.length; ++i) { self._onLoadFuncs[i](); } @@ -141,7 +141,7 @@ define([ this.$iFrame.hover(this.__onHoverEnter.bind(this), this.__onHoverExit.bind(this)); var self = this; - this.$iFrame.load(function () { + this.$iFrame.on('load', function () { for (var i = 0; i < self._onLoadFuncs.length; ++i) { self._onLoadFuncs[i](); }