* @function
* @private
*/
- $(window).on('load', function () {
+ $(window).load(function () {
checkListeners();
});
// Replacing images
if (this.$element[0].nodeName === 'IMG') {
- this.$element.attr('src', path).on('load', function () {
+ this.$element.attr('src', path).load(function () {
_this.currentPath = path;
}).trigger(trigger);
}
// Window exports
Foundation.plugin(Tooltip, 'Tooltip');
}(jQuery);
-
// Replacing images
if (this.$element[0].nodeName === 'IMG') {
- this.$element.attr('src', path).on('load', function () {
+ this.$element.attr('src', path).load(function () {
_this.currentPath = path;
}).trigger(trigger);
}
// Window exports
Foundation.plugin(Interchange, 'Interchange');
-}(jQuery);
+}(jQuery);
\ No newline at end of file