Community
Participate
Working Groups
Objects an their properties are shown in the outline view only if they are in the global namespace. When they are defined in functions they are not shown in the outline view.
Created attachment 189892 [details] file to reproduce The following file demonstrates the issue. The object 'outer' is shown in the outline view but the object 'nested' is not shown in the outline view.
Created attachment 189893 [details] screenshot of the issue A screenshot showing how objects on the top level like 'outer' are shown in the outline view but objects in functions like 'nested' are not shown in the outline view.
Created attachment 214352 [details] Proposed implementation of the enhancement. Here is a little patch that allows to have nested object members show up in the outline. I could not find where to add a test case to cover this new feature. Who can help find?
Created attachment 214353 [details] Screenshot of proposed implemenation Here is how it looks with my patch.
Does it work for Object Literal definitions? They are also completely ignored by the outliner. objLiteral = { foo: function() { // }, bar: function(baz) { // } };