Improved api for debugging.
This commit is contained in:
parent
315a936bd4
commit
a70b88c733
2 changed files with 15 additions and 0 deletions
|
@ -16,6 +16,11 @@ class App.Delay
|
|||
_instance ?= new _Singleton
|
||||
_instance.clearLevel( level )
|
||||
|
||||
@_all: ->
|
||||
if _instance == undefined
|
||||
_instance ?= new _Singleton
|
||||
_instance._all()
|
||||
|
||||
class _Singleton extends Spine.Module
|
||||
@include App.Log
|
||||
|
||||
|
@ -73,3 +78,6 @@ class _Singleton extends Spine.Module
|
|||
@clear( key, level )
|
||||
@levelStack[level] = {}
|
||||
|
||||
_all: ->
|
||||
return @levelStack
|
||||
|
||||
|
|
|
@ -16,6 +16,11 @@ class App.Interval
|
|||
_instance ?= new _Singleton
|
||||
_instance.clearLevel( level )
|
||||
|
||||
@_all: ->
|
||||
if _instance == undefined
|
||||
_instance ?= new _Singleton
|
||||
_instance._all()
|
||||
|
||||
class _Singleton extends Spine.Module
|
||||
@include App.Log
|
||||
|
||||
|
@ -71,3 +76,5 @@ class _Singleton extends Spine.Module
|
|||
@clear( key, level )
|
||||
@levelStack[level] = {}
|
||||
|
||||
_all: ->
|
||||
return @levelStack
|
||||
|
|
Loading…
Reference in a new issue