patch foundation-6.2.3 to work with jquery-3.1

This commit is contained in:
Mario Vavti 2016-09-08 09:52:22 +02:00
parent b6115d3c56
commit 98d5ae91f5
2 changed files with 4 additions and 4 deletions

View File

@ -286,7 +286,7 @@ class Comanche {
$path = 'library/bootstrap/js/bootstrap.min.js';
break;
case 'foundation':
$path = 'library/foundation/js/foundation.min.js';
$path = 'library/foundation/js/foundation.js';
$init = "\r\n" . '<script>$(document).ready(function() { $(document).foundation(); });</script>';
break;
}
@ -458,4 +458,4 @@ class Comanche {
return;
}
}
}

View File

@ -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);
}