{"action":"created","issue":{"url":"https://api.github.com/repos/marijnh/tern/issues/543","labels_url":"https://api.github.com/repos/marijnh/tern/issues/543/labels{/name}","comments_url":"https://api.github.com/repos/marijnh/tern/issues/543/comments","events_url":"https://api.github.com/repos/marijnh/tern/issues/543/events","html_url":"https://github.com/marijnh/tern/issues/543","id":78564935,"number":543,"title":"Additional signatures for jQuery def","user":{"login":"amiuhle","id":460091,"avatar_url":"https://avatars.githubusercontent.com/u/460091?v=3","gravatar_id":"","url":"https://api.github.com/users/amiuhle","html_url":"https://github.com/amiuhle","followers_url":"https://api.github.com/users/amiuhle/followers","following_url":"https://api.github.com/users/amiuhle/following{/other_user}","gists_url":"https://api.github.com/users/amiuhle/gists{/gist_id}","starred_url":"https://api.github.com/users/amiuhle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amiuhle/subscriptions","organizations_url":"https://api.github.com/users/amiuhle/orgs","repos_url":"https://api.github.com/users/amiuhle/repos","events_url":"https://api.github.com/users/amiuhle/events{/privacy}","received_events_url":"https://api.github.com/users/amiuhle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-20T15:16:44Z","updated_at":"2015-05-24T13:26:31Z","closed_at":null,"body":"I'm using @angelozerr's [tern-lint](https://github.com/angelozerr/tern-lint) and have jquery configured as a library in my `.tern-project`.\r\n\r\nUnfortunately, the jquery def only supports the `jQuery( selector [, context ] )` function, which means I get errors when supplying a callback function or an `Element`:\r\n\r\n```js\r\n$(function() {\r\n  // do something\r\n}\r\n// => Invalid argument at 1: cannot convert from Function.prototype to String.prototype\r\n```\r\n\r\nIs it possible to either\r\n* additionally add `jQuery( html [, ownerDocument ] )` and `jQuery( callback )`?\r\n* change the current signature to something more generic like\r\n  `fn(selectorOrCallback: ?, context?: frameElement) -> jQuery.fn`"},"comment":{"url":"https://api.github.com/repos/marijnh/tern/issues/comments/105016395","html_url":"https://github.com/marijnh/tern/issues/543#issuecomment-105016395","issue_url":"https://api.github.com/repos/marijnh/tern/issues/543","id":105016395,"user":{"login":"angelozerr","id":1932211,"avatar_url":"https://avatars.githubusercontent.com/u/1932211?v=3","gravatar_id":"","url":"https://api.github.com/users/angelozerr","html_url":"https://github.com/angelozerr","followers_url":"https://api.github.com/users/angelozerr/followers","following_url":"https://api.github.com/users/angelozerr/following{/other_user}","gists_url":"https://api.github.com/users/angelozerr/gists{/gist_id}","starred_url":"https://api.github.com/users/angelozerr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angelozerr/subscriptions","organizations_url":"https://api.github.com/users/angelozerr/orgs","repos_url":"https://api.github.com/users/angelozerr/repos","events_url":"https://api.github.com/users/angelozerr/events{/privacy}","received_events_url":"https://api.github.com/users/angelozerr/received_events","type":"User","site_admin":false},"created_at":"2015-05-24T13:26:31Z","updated_at":"2015-05-24T13:26:31Z","body":"@amiuhle there is the same issue with angular and tern-lint https://github.com/angelozerr/tern-lint/issues/39\r\n\r\nPlease create an issue at https://github.com/angelozerr/tern-lint/issues/ for your case and I will try to support it when I will find time. Thanks"}}