jsctags
jsctags copied to clipboard
Does not generate output for Backbone Models
It would be nice if it also respects the Backbone way of using Javascript:
var HelloModel = Backbone.Model.extend({
world: function() {
console.log("Hello World!");
}
});
currently it only returns [] for this.
:+1: I really need this work! The extend method of defining classes is becoming common in many frameworks. At the very least, is there an option to surface all functions that are properties on unnamed JS objects? That would at least get world
to show up as a tag in tern's output.
Any ideas? @ramitos?
Same for anonymous (+self-executing) functions:
(function () {
....
}());
Empty array is returned by jsctags. Note that tern itself seems to be able to parse it, since tern_for_vim plugin commands (such as TernDef, TernDoc, TernRefs) work fine.
I just ran into the issue of it not working for anonymous functions. Was really hoping to use this to generate tags for Tagbar.
Same issue here. Hope that it can be fixed.
I'm also wishing for this :+1:
Ampersand.js (a backbone-inspired JS framework) also uses this pattern. +1