Skip to content

Commit

Permalink
fix bug: use only one ldcv
Browse files Browse the repository at this point in the history
  • Loading branch information
zbryikt committed Jun 2, 2021
1 parent cde8172 commit 6604b48
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions web/src/ls/index.ls
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
ldrs.on \change, -> console.log 'changed:', it
ldrs.set 8

ldcv = new ldCover root: ld$.find(root1, '.ldcv', 0)
ldcv = new ldCover root: ld$.find('.ldcv', 0)

ldrs = window.ldrsInput = new ldSlider root: ld$.find(root1,'.ldrs',6), min: 1, max: 11, step: 2
ldrs.on \change, -> console.log 'changed:', it
Expand Down Expand Up @@ -57,7 +57,6 @@
ldrs.on \change, -> console.log 'changed:', it
ldrs.set {from: 2, to: 8}

ldcv = new ldCover root: ld$.find(root2, '.ldcv', 0)

ldrs = window.ldrsInput = new ldSlider root: ld$.find(root2,'.ldrs',6), min: 1, max: 11, step: 2, range: true
ldrs.on \change, -> console.log 'changed:', it
Expand Down
5 changes: 1 addition & 4 deletions web/static/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
});
ldrs.set(8);
ldcv = new ldCover({
root: ld$.find(root1, '.ldcv', 0)
root: ld$.find('.ldcv', 0)
});
ldrs = window.ldrsInput = new ldSlider({
root: ld$.find(root1, '.ldrs', 6),
Expand Down Expand Up @@ -145,9 +145,6 @@
from: 2,
to: 8
});
ldcv = new ldCover({
root: ld$.find(root2, '.ldcv', 0)
});
ldrs = window.ldrsInput = new ldSlider({
root: ld$.find(root2, '.ldrs', 6),
min: 1,
Expand Down
2 changes: 1 addition & 1 deletion web/static/js/index.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6604b48

Please sign in to comment.