Add some temporary logging to debug intermittent spec failure.

This commit is contained in:
Nathan Sobo
2012-03-14 19:15:59 -06:00
parent 8b0d79b589
commit 04fce8067f

View File

@@ -25,8 +25,16 @@ class App
quit: ->
$native.terminate null
windowIdCounter: 1
windowOpened: (window) ->
id = @windowIdCounter++
console.log "window opened! #{id}"
window.id = id
@windows.push window
windowClosed: (window) ->
console.log "windowClosed #{window.id}"
console.log "windows length before #{@windows.length}"
_.remove(@windows, window)
console.log "windows length after #{@windows.length}"