Skip to content

Commit

Permalink
Merge pull request #747 from ioam/underscore_fix
Browse files Browse the repository at this point in the history
Underscore fixes
  • Loading branch information
jlstevens committed Jul 1, 2016
2 parents d4a0c5b + 5c2b39b commit c0fba34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion holoviews/plotting/bokeh/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class Callback(param.ParameterizedFunction):
}}
timeout = HoloViewsWidget._timeout + {timeout};
if (_.isEmpty(data)) {{
if ((typeof _ === "undefined") || _.isEmpty(data)) {{
}} else if ((HoloViewsWidget._blocked && (Date.now() < timeout))) {{
HoloViewsWidget._queued = [data];
}} else {{
Expand Down
2 changes: 1 addition & 1 deletion holoviews/plotting/widgets/widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ SelectionWidget.prototype.get_key = function(current_vals) {
for (var i=0; i<this.slider_ids.length; i++)
{
val = this.current_vals[i];
if (!(_.isString(val))) {
if (!(typeof val === 'string')) {
if (val % 1 === 0) { var fixed = 1;}
else { var fixed = 10;}
val = val.toFixed(fixed)
Expand Down

0 comments on commit c0fba34

Please sign in to comment.