mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-24 02:27:37 +00:00
Use var prefix to avoid global namespace
This commit is contained in:
parent
0bf0ab187b
commit
edddb5de7e
1 changed files with 2 additions and 2 deletions
|
|
@ -300,8 +300,8 @@ function Winamp () {
|
|||
volume = Math.min(volume, 100);
|
||||
|
||||
var percent = volume / 100;
|
||||
sprite = Math.round(percent * 28);
|
||||
offset = (sprite - 1) * 15;
|
||||
var sprite = Math.round(percent * 28);
|
||||
var offset = (sprite - 1) * 15;
|
||||
|
||||
self.media.setVolume(percent);
|
||||
self.nodes.volume.style.backgroundPosition = '0 -' + offset + 'px';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue