mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
Fixed various debugger UI bugs
This commit is contained in:
parent
4ef6548dad
commit
6fd89f10b9
2 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue