Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[fix] Update bad `this` reference`

  • Loading branch information...
commit b2baf85d7f8afe2433371328b9a0461d688b7de1 1 parent 321f6f2
@indexzero indexzero authored
Showing with 1 addition and 9 deletions.
  1. +0 −8 TODO
  2. +1 −1  lib/resourceful/resource.js
View
8 TODO
@@ -1,8 +0,0 @@
-
-- Fix validator functions to throw TypeError instead of Error.
-- Make value of 'resource' field lowercase accross the board.
-- Retrieve objects directly from cache, if available.
-- Turn the object cache into an LRU.
-- Implement *file* backend.
-- Implement *rest* backend.
-- Make sure we bypass the 'n+1' problem.
View
2  lib/resourceful/resource.js
@@ -485,7 +485,7 @@ Resource.sync = function (callback) {
this.connection.sync(this, function (e, design) {
if (e) {
// XXX how to report errors here?
- this.emit('error', e);
+ that.emit('error', e);
}
that._synching = false;
Please sign in to comment.
Something went wrong with that request. Please try again.