diff --git a/notebook/static/notebook/js/commandpalette.js b/notebook/static/notebook/js/commandpalette.js index d85bfc71b..b97ce10c7 100644 --- a/notebook/static/notebook/js/commandpalette.js +++ b/notebook/static/notebook/js/commandpalette.js @@ -122,7 +122,7 @@ define(function(require){ */ var onResult = function(node, query, result, resultCount) { if (resultCount == 1) { - window.requestAnimationFrame(function() { + requestAnimationFrame(function() { $('.typeahead-list > li:nth-child(2)').addClass('active'); }); }