Standard: remove unused variables

pull/1/head
Alex Beregszaszi 9 years ago
parent d59a297008
commit 6a9e874fea
  1. 9
      src/app.js
  2. 1
      src/app/storage-handler.js

@ -27,7 +27,6 @@ var run = function () {
var content = files[f].content; var content = files[f].content;
if (key in window.localStorage && window.localStorage[key] !== content) { if (key in window.localStorage && window.localStorage[key] !== content) {
var count = ''; var count = '';
var otherKey = key + count;
while ((key + count) in window.localStorage) count = count - 1; while ((key + count) in window.localStorage) count = count - 1;
window.localStorage[key + count] = window.localStorage[key]; window.localStorage[key + count] = window.localStorage[key];
} }
@ -138,7 +137,7 @@ var run = function () {
return; return;
} }
var files = editor.packageFiles(); var files = editor.packageFiles();
var iframe = $('<iframe/>', {src: target, style: 'display:none;', load: function () { $('<iframe/>', {src: target, style: 'display:none;', load: function () {
this.contentWindow.postMessage(['loadFiles', files], '*'); this.contentWindow.postMessage(['loadFiles', files], '*');
}}).appendTo('body'); }}).appendTo('body');
}); });
@ -271,9 +270,9 @@ var run = function () {
return itemsWidth; return itemsWidth;
} }
function widthOfHidden () { // function widthOfHidden () {
return ($filesWrapper.outerWidth() - widthOfList() - getLeftPosi()); // return ($filesWrapper.outerWidth() - widthOfList() - getLeftPosi());
} // }
function widthOfVisible () { function widthOfVisible () {
return $filesWrapper.outerWidth(); return $filesWrapper.outerWidth();

@ -11,7 +11,6 @@ function StorageHandler (updateFiles) {
var obj = {}; var obj = {};
var done = false; var done = false;
var count = 0; var count = 0;
var dont = 0;
function check (key) { function check (key) {
chrome.storage.sync.get(key, function (resp) { chrome.storage.sync.get(key, function (resp) {

Loading…
Cancel
Save