Permalink
Browse files

Revert "save to localstorage more frequently, fixes #1345"

This reverts commit 5641356.
  • Loading branch information...
1 parent 5641356 commit b0abe207ed4461d97c013d51d83eae24ad0e62ba @ansis ansis committed May 2, 2013
Showing with 0 additions and 10 deletions.
  1. +0 −10 js/id/ui.js
View
@@ -114,16 +114,6 @@ iD.ui = function(context) {
.attr('tabindex', -1)
.call(iD.ui.Contributors(context));
- // save changes to localstorage
- history.on('change.localstorage', function() {
- context.on('enter.localstorage', function(mode) {
- if (mode.id === 'browse' || mode.id === 'select') {
- context.on('enter.localstorage', null);
- history.save();
- }
- });
- });
-
window.onbeforeunload = function() {
history.save();
if (history.hasChanges()) return t('save.unsaved_changes');

0 comments on commit b0abe20

Please sign in to comment.