Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Encapsulate code in anonymous closure to prevent leaking global varia…

…bles.
  • Loading branch information...
commit d83b84f7a900a0c23234398939a7e87dd53ccd58 1 parent 31ea3bc
@dwt dwt authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 backbone.localStorage.js
View
4 backbone.localStorage.js
@@ -1,3 +1,4 @@
+(function() {
/**
* Backbone localStorage Adapter v1.0
* https://github.com/jeromegn/Backbone.localStorage
@@ -101,4 +102,5 @@ window.Store.sync = Backbone.sync = function(method, model, options, error) {
} else {
options.error("Record not found");
}
-};
+};
+})();
Please sign in to comment.
Something went wrong with that request. Please try again.