biggerboat/navigator.js

DebugConsole should try harder to show class

Closed this issue · 1 comments

Right now, a toString-function is required to show something in the DebugConsole. Else the element name is black. We could try harder by checking if there is a $el.class or id.

Good point. For the stateViewMap we are assuming a $el property anyway. So when a toString method 'fails' (returns that it is an object), then we should determine one ourselves.
In addition to your suggestion, I'd like to propose that clicking within the debug console outputs a console.log outputting the viewClassInstance?