Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
officejs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
officejs
Commits
a94351dc
Commit
a94351dc
authored
Jun 12, 2014
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused function and gadget
parent
1bd101f2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
70 deletions
+0
-70
src/audioplayer/audioplayer.js
src/audioplayer/audioplayer.js
+0
-6
src/audioplayer_control/control.js
src/audioplayer_control/control.js
+0
-6
src/audioplayer_log_message/index.html
src/audioplayer_log_message/index.html
+0
-20
src/audioplayer_log_message/log.js
src/audioplayer_log_message/log.js
+0
-38
No files found.
src/audioplayer/audioplayer.js
View file @
a94351dc
...
...
@@ -41,11 +41,6 @@
.
allowPublicAcquisition
(
"
setVolume
"
,
function
(
value
)
{
control
.
setVolume
(
value
[
0
]);
})
.
allowPublicAcquisition
(
"
getVolume
"
,
function
()
{
return
control
.
getVolume
().
then
(
function
(
value
)
{
return
value
;
});
})
.
allowPublicAcquisition
(
"
getFFTValue
"
,
function
()
{
return
control
.
getFFTValue
().
then
(
function
(
value
)
{
return
value
;
...
...
@@ -212,7 +207,6 @@
io
.
removeIO
(
options
.
page
)
.
then
(
function
()
{
list
.
initList
(
playlist
);
// list.display();
});
return
;
}
...
...
src/audioplayer_control/control.js
View file @
a94351dc
...
...
@@ -30,12 +30,6 @@
.
declareMethod
(
'
getVolume
'
,
function
()
{
return
this
.
volume
;
})
.
declareMethod
(
'
getTitle
'
,
function
(
id
)
{
if
(
id
===
undefined
)
{
id
=
this
.
currentPlayId
;
}
return
this
.
playlist
[
id
];
})
.
declareMethod
(
'
isPaused
'
,
function
()
{
return
this
.
audio
.
paused
;
})
...
...
src/audioplayer_log_message/index.html
deleted
100644 → 0
View file @
1bd101f2
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<title>
show message
</title>
<!-- renderjs -->
<script
src=
"../<%= copy.rsvp.relative_dest %>"
type=
"text/javascript"
></script>
<script
src=
"../<%= copy.renderjs.relative_dest %>"
type=
"text/javascript"
></script>
<!-- custom script -->
<script
src=
"./log.js"
type=
"text/javascript"
></script>
</head>
<body>
<div
id =
"log"
>
</div>
</body>
</html>
src/audioplayer_log_message/log.js
deleted
100644 → 0
View file @
1bd101f2
/*global window, rJS, RSVP, console, document, JSON */
/*jslint maxlen:80, nomen: true */
(
function
(
window
,
rJS
)
{
"
use strict
"
;
var
gk
=
rJS
(
window
),
logColor
=
0
,
arrayColor
=
[
"
white
"
,
"
cyan
"
];
function
logGetColor
()
{
logColor
=
(
logColor
+
1
)
%
arrayColor
.
length
;
return
arrayColor
[
logColor
];
}
gk
.
declareMethod
(
'
showMessage
'
,
function
(
msg
)
{
var
node
=
document
.
createElement
(
"
pre
"
);
node
.
setAttribute
(
"
style
"
,
"
background-color:
"
+
logGetColor
()
+
"
;margin:0;padding:0;
"
);
if
(
typeof
msg
===
"
string
"
)
{
node
.
textContent
+=
msg
;
}
else
{
node
.
textContent
+=
JSON
.
stringify
(
msg
,
null
,
"
"
);
}
this
.
log
.
appendChild
(
node
);
})
.
declareMethod
(
'
clear
'
,
function
()
{
this
.
log
.
innerHTML
=
""
;
});
gk
.
ready
(
function
(
g
)
{
g
.
log
=
g
.
__element
.
getElementsByTagName
(
'
div
'
)[
0
];
});
}(
window
,
rJS
));
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