From b0abe207ed4461d97c013d51d83eae24ad0e62ba Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Thu, 2 May 2013 11:54:14 -0400 Subject: [PATCH] Revert "save to localstorage more frequently, fixes #1345" This reverts commit 56413563c3b1fbb905bf4112aff581537597430e. --- js/id/ui.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/js/id/ui.js b/js/id/ui.js index c7c9bf937..ff72efeca 100644 --- a/js/id/ui.js +++ b/js/id/ui.js @@ -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');