-
Notifications
You must be signed in to change notification settings - Fork 52
New and Noteworthy 0.10.0
Here's a list of the most noteworthy things in the tern.java 0.10.0 release which is available for download since 18/06/2015. You can see issues for 0.10.0
Completion & hover icon is generated at runtime by merging the origin module (YUI, Node, etc) and the JavaScript type (Sting, Number, Boolean, Array, Function) :
ternjs is now available to support multiple types. For instance String#replace
have a pattern
parameter which can have 2 types :
string
- or
RegExp
The hover displays the multiple types :
tern-guess-types was improved to support multiple type. If you open tern completion for string
and select replace
:
When you apply completion, tern guess types gives the capability to retrieve variables, functions for each function parameters. Here a screenshot which shows a list of variable with string type for the pattern
type argument :
JSDoc Support can be configured with 2 options :
-
strong :
can be set to true to assign a higher-than-default weight to the types it finds in comments, and thus overrides inferred types
. -
fulldocs :
can be set to true to return the full comment text instead of the first sentence.
YUI and AlloyUI tern plugins supports now completion and validation for both modules (eg : aui-tree
) and submodules (eg : aui-tree-data
) :
Anim class extends Base which provides none methods/properties but which uses several classes like BaseCore, AttributeCore. The tern plugin is able to mix BaseCore, AttributeCore methods/properties in Base to provide for instance addAttr:
AlloyUI A.Node augments the YUI3 Node with more util methods. The tern plugin is able to mix YUI3 node with AlloyUI A.Node to provide for instance ancestorsByClassName:
Dojo 1.10 support is now available. Completion on AMD module is available :
Add a support for jQuery UI :
For more information, please read jQuery UI.
Add a support for jQuery Mobile :
For more information, please read jQuery Mobile.
Add a support for QUnit :
For more information, please read QUnit.
Add a support for Bootstrap :
For more information, please read Bootstrap.
Add a support for Google Charts :
For more information, please read Google Charts.
Add a support for three.js :
For more information, please read three.js.
Add a support for Chrome Extension API :
For more information, please read Chrome Extension API.
Add a basic support for Appcelerator Titanium :
For more information, please read Titanium.
Your project uses somes tern modules. For instance if you use browser support and you execute the completion like this :
You can see methods of getElement
of DOM node in the completion although the a
variable is not a DOM node, why? It's because default guess of completion :
When completing a property and no completions are found,
Tern will use some heuristics to try and return some properties anyway.
Set this to false to turn that off.
Now you can change the guess value with Tern / Completion
project properties :
If you execute completion, you will see none result :
- Tern IDE
- Tern Toolings
-
Tern Modules
- AngularJS
- AlloyUI
- Browser
- Bootstrap
- CKEditor
- CordovaJS
- Dojo Toolkit
- ECMAScript
- ExtJS
- Game
- jQuery
- JSDoc Support
- Liferay
- Meteor
- Node.js
- Qooxdoo
- snabbt.js
- RequireJS
- Tabris.js
- three.js
- Titanium
- YUI Library
- Completion
- Linter (Validator)
- Tests
- JavaScript Build
- New and Noteworthy