Permalink
Browse files

Removing duplicate error and more version checks for localstorage

  • Loading branch information...
1 parent 83eb26f commit 429277bf90204785c5ec3af6fa6e22a48db3db2f @tgriesser tgriesser committed Mar 19, 2013
Showing with 1 addition and 7 deletions.
  1. +1 −7 examples/backbone.localStorage.js
@@ -151,14 +151,8 @@ Backbone.LocalStorage.sync = window.Store.sync = Backbone.localSync = function(m
errorMessage = errorMessage ? errorMessage
: "Record Not Found";
- model.trigger("error", model, errorMessage, options);
if (options && options.error)
- if (Backbone.VERSION === "0.9.10") {
- options.error(model, errorMessage, options);
- } else {
- options.error(errorMessage);
- }
-
+ options.error(errorMessage);
if (syncDfd)
syncDfd.reject(errorMessage);
}

0 comments on commit 429277b

Please sign in to comment.