Skip to content

Commit

Permalink
Fixed incorrect scoping bug in widget template (#1881)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Sep 13, 2017
1 parent d76c4f4 commit 644c94d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holoviews/plotting/widgets/jsslider.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@
</select>
</div>
<script>
var vals = {{ widget_data['vals'] }};
var labels = {{ widget_data['labels'] }};
function init_dropdown() {
var widget = $("#_anim_widget{{ id }}_{{ widget_data['dim'] }}");
var vals = {{ widget_data['vals'] }};
var labels = {{ widget_data['labels'] }};
widget.data('values', vals)
for (var i=0; i<vals.length; i++){
if ({{ dynamic }}) {
Expand Down

0 comments on commit 644c94d

Please sign in to comment.