From 6fd89f10b91e8e12a6995d1413c6f5c203ecbebf Mon Sep 17 00:00:00 2001 From: Michael Schmatz Date: Wed, 7 May 2014 10:03:49 -0700 Subject: [PATCH] Fixed various debugger UI bugs --- app/assets/javascripts/workers/worker_debug.js | 2 +- app/views/play/level/tome/spell_debug_view.coffee | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/workers/worker_debug.js b/app/assets/javascripts/workers/worker_debug.js index 49f54c170..422180858 100644 --- a/app/assets/javascripts/workers/worker_debug.js +++ b/app/assets/javascripts/workers/worker_debug.js @@ -203,7 +203,7 @@ self.updateCache = function (thangID, spellID, variableChain, frame, value) { self.retrieveValueFromFrame = function retrieveValueFromFrame(args) { var cacheValue; if (args.frame === self.currentWorldFrame && (cacheValue = self.retrieveValueFromCache(args.currentThangID, args.currentSpellID, args.variableChain, args.frame))) - return self.postMessage({type: 'debug-value-return', serialized: {"key": args.variableChain.join(), "value": cacheValue}}); + return self.postMessage({type: 'debug-value-return', serialized: {"key": args.variableChain.join("."), "value": cacheValue}}); var retrieveProperty = function retrieveProperty(currentThangID, currentSpellID, variableChain) diff --git a/app/views/play/level/tome/spell_debug_view.coffee b/app/views/play/level/tome/spell_debug_view.coffee index 86841613b..0cb02061d 100644 --- a/app/views/play/level/tome/spell_debug_view.coffee +++ b/app/views/play/level/tome/spell_debug_view.coffee @@ -35,6 +35,7 @@ module.exports = class DebugView extends View handleDebugValue: (returnObject) -> {key, value} = returnObject + unless key is @variableChain.join(".") then return @$el.find("code").text "#{key}: #{value}" @$el.show().css(@pos)