From 43a735e20bc1f9de6943a11b432fc03094588ce5 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Mon, 9 Mar 2015 17:12:13 +0000 Subject: [PATCH] Move declarations of state variable m_dataToRedraw and m_frozen to just before the first function that uses each. --- src/mkws-widget-main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mkws-widget-main.js b/src/mkws-widget-main.js index 017ce65..e264eba 100644 --- a/src/mkws-widget-main.js +++ b/src/mkws-widget-main.js @@ -113,14 +113,13 @@ mkws.registerWidgetType('details', function() { mkws.registerWidgetType('records', function() { var that = this; var team = this.team; - var m_dataToRedraw = null; - var m_frozen = false; this.team.queue("searchtriggered").subscribe(function() { var op = that.config.newsearch_opacity; if (op !== undefined) { that.node.fadeTo(500, op); } }); + var m_dataToRedraw = null; function refreshRecordData() { that.node.css('opacity', 1); @@ -149,6 +148,7 @@ mkws.registerWidgetType('records', function() { m_dataToRedraw = null; } + var m_frozen = false; function setRecordData(data) { m_dataToRedraw = data; if (!m_frozen) { -- 1.7.10.4