Skip to content

Commit

Permalink
Fix browser version
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed Feb 4, 2014
1 parent 453c1fa commit 1d9a89c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions dist/underscore.db.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ index.load = function(source) {
source = source || 'db';
return JSON.parse(localStorage.getItem(source));
};

_.mixin(index);
},{"./":2}],2:[function(require,module,exports){
// Set an empty reference to _
var _;
Expand Down
2 changes: 1 addition & 1 deletion dist/underscore.db.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion src/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ index.save = function(db, destination) {
index.load = function(source) {
source = source || 'db';
return JSON.parse(localStorage.getItem(source));
};
};

_.mixin(index);

0 comments on commit 1d9a89c

Please sign in to comment.