* @function
* @private
*/
- $(window).load(function () {
+ $(window).on("load", function () {
checkListeners();
});
// 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);
}
// 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);
}
* @function
* @private
*/
- $(window).load(function () {
+ $(window).on("load", function () {
checkListeners();
});
// 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);
* @function
* @private
*/
-$(window).load(() => {
+$(window).on("load", () => {
checkListeners();
});