Skip to content

Commit

Permalink
Compatibilty for jQuery 1.9 : replace error call with on('error').
Browse files Browse the repository at this point in the history
  • Loading branch information
nyroDev committed Jan 16, 2013
1 parent 1d6f4f5 commit 61895b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/jquery.nyroModal.filters.embedly.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jQuery(function($, undefined) {
nm.elts.cont.addClass('nyroModalImg');
nm.elts.hidden.addClass('nyroModalImg');
nm._setCont(this);
}).error(function() {
}).on('error', function() {
nm._error();
})
.attr('src', nm.store.embedly.url);
Expand Down
2 changes: 1 addition & 1 deletion js/jquery.nyroModal.filters.formFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jQuery(function($, undefined) {
}
}
})
.error(function() {
.on('error', function() {
rmFormFileElts();
nm._error();
});
Expand Down

0 comments on commit 61895b6

Please sign in to comment.