Commented unused code

This commit is contained in:
Giulia Alfonsi 2014-04-03 14:33:56 +01:00
parent 47e79289a7
commit f53ac8a88e

View File

@ -193,13 +193,13 @@ var $window = $(window),
$window.unload(unload);
window.addEventListener('storage', function (e) {
if (e.storageArea === localStorage && e.key === 'settings') {
console.log('updating from storage');
console.log(JSON.parse(localStorage.settings));
jsbin.settings = JSON.parse(localStorage.settings);
}
});
// window.addEventListener('storage', function (e) {
// if (e.storageArea === localStorage && e.key === 'settings') {
// console.log('updating from storage');
// console.log(JSON.parse(localStorage.settings));
// jsbin.settings = JSON.parse(localStorage.settings);
// }
// });
// hack for Opera because the unload event isn't firing to capture the settings, so we put it on a timer
if ($.browser.opera) {