Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not generate output for Backbone Models #4

Open
bitboxer opened this issue Sep 28, 2013 · 6 comments
Open

Does not generate output for Backbone Models #4

bitboxer opened this issue Sep 28, 2013 · 6 comments

Comments

@bitboxer
Copy link

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.

@tybenz
Copy link

tybenz commented Oct 3, 2014

👍 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?

@laur89
Copy link

laur89 commented May 4, 2015

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.

@3cooper
Copy link

3cooper commented May 20, 2015

I just ran into the issue of it not working for anonymous functions. Was really hoping to use this to generate tags for Tagbar.

@kawing-chiu
Copy link

Same issue here. Hope that it can be fixed.

@nerfologist
Copy link

I'm also wishing for this 👍

@zeorin
Copy link

zeorin commented Sep 30, 2015

Ampersand.js (a backbone-inspired JS framework) also uses this pattern. +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants