else if (bar)
return bar; // fixed
+Fixes in Imenu support
+----------------------
+
+Supports element-get form:
+
+ foo["bar"] = function() {};
+ foo[647] = function() {};
+
+Proper position for functions in nested object literals:
+
+ foo = {
+ bar: function() {}, // ok in original
+ baz: {
+ boop: function() {} // fixed here
+ },
+ }
+
+Imenu support for function nesting
+----------------------------------
+
+Supports one level of nesting:
+
+ function foo() {
+ function bar() { // shown as foo.bar
+ function baz() {} // hidden
+ }
+ }
+
+Top-level function can be anonymous wrapper:
+
+ (function() {
+ var foo = function() {}; // shown as foo
+ })();
+
+Examples of output:
+
+* [Underscore.js](https://github.com/documentcloud/underscore/blob/master/underscore.js)
+-> <https://gist.github.com/824262>
+* [Backbone.js](https://github.com/documentcloud/backbone/blob/master/backbone.js)
+-> <https://gist.github.com/824260>
+
+No support for library-specific extension methods like _.extend.
+
Bugs
====