From 99df794f2ca27b0bd83edab3c75d6acb9f7834e4 Mon Sep 17 00:00:00 2001 From: Rishi Gupta Date: Mon, 17 Jul 2017 13:09:36 -0700 Subject: [PATCH] tutorial: Remove window resizing logic. --- static/js/tutorial.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/static/js/tutorial.js b/static/js/tutorial.js index e49f45bded..e3dda83e5c 100644 --- a/static/js/tutorial.js +++ b/static/js/tutorial.js @@ -5,9 +5,6 @@ var is_running = false; var event_handlers = {}; var deferred_work = []; -// Keep track of where we are for handling resizing. -var current_popover_info; - // We'll temporarily set stream colors for the streams we use in the demo // tutorial messages. var real_default_color; @@ -48,10 +45,6 @@ exports.defer = function (callback) { deferred_work.push(callback); }; -function update_popover_info(popover_func) { - current_popover_info = popover_func; -} - function finale(skip) { var finale_modal = $("#tutorial-finale"); if (skip) { @@ -71,7 +64,6 @@ function finale(skip) { // Restore your actual stream colors set_tutorial_status("finished"); is_running = false; - update_popover_info(undefined); stream_color.default_color = real_default_color; $('#first_run_message').show(); enable_event_handlers(); @@ -104,11 +96,6 @@ exports.initialize = function () { if (page_params.needs_tutorial) { exports.start(); } - $(window).resize($.debounce(100, function () { - if (current_popover_info !== undefined) { - current_popover_info(); - } - })); }; return exports;