Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
6a9e874f
Commit
6a9e874f
authored
Jun 08, 2016
by
Alex Beregszaszi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Standard: remove unused variables
parent
d59a2970
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
app.js
src/app.js
+4
-5
storage-handler.js
src/app/storage-handler.js
+0
-1
No files found.
src/app.js
View file @
6a9e874f
...
...
@@ -27,7 +27,6 @@ var run = function () {
var
content
=
files
[
f
].
content
;
if
(
key
in
window
.
localStorage
&&
window
.
localStorage
[
key
]
!==
content
)
{
var
count
=
''
;
var
otherKey
=
key
+
count
;
while
((
key
+
count
)
in
window
.
localStorage
)
count
=
count
-
1
;
window
.
localStorage
[
key
+
count
]
=
window
.
localStorage
[
key
];
}
...
...
@@ -138,7 +137,7 @@ var run = function () {
return
;
}
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
],
'*'
);
}}).
appendTo
(
'body'
);
});
...
...
@@ -271,9 +270,9 @@ var run = function () {
return
itemsWidth
;
}
function
widthOfHidden
()
{
return
(
$filesWrapper
.
outerWidth
()
-
widthOfList
()
-
getLeftPosi
());
}
//
function widthOfHidden () {
//
return ($filesWrapper.outerWidth() - widthOfList() - getLeftPosi());
//
}
function
widthOfVisible
()
{
return
$filesWrapper
.
outerWidth
();
...
...
src/app/storage-handler.js
View file @
6a9e874f
...
...
@@ -11,7 +11,6 @@ function StorageHandler (updateFiles) {
var
obj
=
{};
var
done
=
false
;
var
count
=
0
;
var
dont
=
0
;
function
check
(
key
)
{
chrome
.
storage
.
sync
.
get
(
key
,
function
(
resp
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment