kangax / kratko.js

Simple tool to help refactor Javascript

Home Page:http://perfectionkills.com/refactoring-javascript-with-kratko-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to quickly analyse objects within a given context

wheresrhys opened this issue · comments

Kratko's a really great idea for a tool, and already works pretty well. My one bugbear is that I have to keep on typing in the full name of objects which, particularly in large apps, can be convoluted and involve.

What would be useful would be the ability to type in the name of an object/namespace in which all your objects are kept, and then select the objects from a dropdown to analyse them.

So, if my app has a structure like
window.MyNamespace = {}
MyNamespace.Widget1 = { ... }
MyNamespace.Widget2 = { ... }

Then I can type in "MyNamespace" into a field, and a drop-down displays a list of the subobjects.

Yep. Sounds like a good idea! Feel free to take a stab at it, if you want. I might tinker with it later to see what I can do.