Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

[js code hints] Incorrect jQuery hints when switching to a $. from $(something). #3685

Open
RaymondLim opened this issue May 1, 2013 · 4 comments

Comments

@RaymondLim
Copy link
Contributor

  1. In a js file type $("a"). and you will get hints start with "add", "addBack" and etc.
  2. Use backspace to delete everything except $.
  3. Type a dot after $.

Result: You still see the same jQuery function list from step 1.
Expected: Should display static methods instead of instance methods. If you delete everything in step 2 and retype $. in step 3, then you see the correct list of static methods and properties.

@ghost ghost assigned dloverin May 3, 2013
@pthiess
Copy link
Contributor

pthiess commented May 3, 2013

Reviewed @dloverin seems a less common case.

@eztierney
Copy link
Contributor

Does not appear to be jQuery specific - I observe the same behavior with

function Foo() {
    return "hi";
}
Foo.notbar = "there";

Foo().  // ask for hints, then delete the '().', type a new '.' and the hints still show string props

@redmunds
Copy link
Contributor

Was assigned to tern team, so marking "Needs Review".

@dangoor dangoor self-assigned this Apr 1, 2014
@dangoor
Copy link
Contributor

dangoor commented Apr 24, 2014

Either this is a bug in our code or this is a bug that has been fixed in a more recent Tern than we currently have because this problem reproduces in current Brackets master but not in the Tern demo page.

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

No branches or pull requests

6 participants