Improved api for debugging.

This commit is contained in:
Martin Edenhofer 2013-03-22 08:19:49 +01:00
parent 315a936bd4
commit a70b88c733
2 changed files with 15 additions and 0 deletions

View file

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

View file

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