Skip to content

New and Noteworthy 0.10.0

angelozerr edited this page May 13, 2015 · 23 revisions

Here's a list of the most noteworthy things in the tern.java 0.10.0 release which will be available for download at ?. You can see issues for 0.10.0

YUI & AlloyUI improvement

YUI & AlloyUI modules

YUI and AlloyUI tern plugins supports now completion and validation for both modules (eg : aui-tree) and submodules (eg : aui-tree-data) :

YUI submodules completion

YUI Class extension & mix

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 Anim & Mix

A.Node Augments

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:

AlloyUI augments node

jQuery UI

Add a support for jQuery UI :

jQuery UI Completion

For more information, please read Titanium.

Appcelerator Titanium

Add a basic support for Appcelerator Titanium :

Titanium Completion

For more information, please read Titanium.

Completion guess

Your project uses somes tern modules. For instance if you use browser support and you execute the completion like this :

Completion guess true

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 :

Completion guess true

If you execute completion, you will see none result :

Completion guess false

Clone this wiki locally