Skip to content

Commit 61895b6

Browse files
committed
Compatibilty for jQuery 1.9 : replace error call with on('error').
1 parent 1d6f4f5 commit 61895b6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

js/jquery.nyroModal.filters.embedly.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jQuery(function($, undefined) {
7171
nm.elts.cont.addClass('nyroModalImg');
7272
nm.elts.hidden.addClass('nyroModalImg');
7373
nm._setCont(this);
74-
}).error(function() {
74+
}).on('error', function() {
7575
nm._error();
7676
})
7777
.attr('src', nm.store.embedly.url);

js/jquery.nyroModal.filters.formFile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jQuery(function($, undefined) {
8787
}
8888
}
8989
})
90-
.error(function() {
90+
.on('error', function() {
9191
rmFormFileElts();
9292
nm._error();
9393
});

0 commit comments

Comments
 (0)