Permalink
Browse files

Adding requesterror callback

  • Loading branch information...
1 parent 52d7710 commit de5f4d203c10147c9721a0229c4102e5c6ba42f5 @tmcw tmcw committed Dec 5, 2011
Showing with 11 additions and 3 deletions.
  1. +5 −1 modestmaps.js
  2. +1 −1 modestmaps.min.js
  3. +5 −1 src/requests.js
View
@@ -1101,7 +1101,10 @@ if (!com) {
this.maxOpenRequests = 4;
this.requestQueue = [];
- this.callbackManager = new MM.CallbackManager(this, ['requestcomplete']);
+ this.callbackManager = new MM.CallbackManager(this, [
+ 'requestcomplete',
+ 'requesterror'
+ ]);
};
MM.RequestManager.prototype = {
@@ -1297,6 +1300,7 @@ if (!com) {
// really stops loading
// FIXME: we'll never retry because this id is still
// in requestsById - is that right?
+ theManager.dispatchCallback('requesterror', img.src);
img.src = null;
}
Oops, something went wrong.

0 comments on commit de5f4d2

Please sign in to comment.