Permalink
Browse files

Compatibilty for jQuery 1.9 : replace error call with on('error').

  • Loading branch information...
1 parent 1d6f4f5 commit 61895b6ee8cb543cfdaa17d703ec6bcd338fec5f @nyroDev committed Jan 16, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 js/jquery.nyroModal.filters.embedly.js
  2. +1 −1 js/jquery.nyroModal.filters.formFile.js
@@ -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);
@@ -87,7 +87,7 @@ jQuery(function($, undefined) {
}
}
})
- .error(function() {
+ .on('error', function() {
rmFormFileElts();
nm._error();
});

0 comments on commit 61895b6

Please sign in to comment.