Fixed various debugger UI bugs

This commit is contained in:
Michael Schmatz 2014-05-07 10:03:49 -07:00
parent 4ef6548dad
commit 6fd89f10b9
2 changed files with 2 additions and 1 deletions

View file

@ -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)

View file

@ -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)