mooz/js2-mode — Issue #27: imenu problems
Author: mbuczko
Created: 2011-12-14 12:05:56+00:00
State: open

hi,

looks like there is something wrong with how imenu shows available functions.
following example works perfectly:

var foo = function(options) {
};

and imenu shows "foo" on the list. but let's modify it a bit:

var foo = function(options) {
var bar = function() {
}
};

and we get "\" and "bar" on the list. There is a second problem as well:

(function($) {
var foo = function(options) {
var bar = function() {
};
};
})(jQuery);

imenu shows only "foo".