eclipse javascript plugins to detect inheritance -


my project implemets inheritance via following code pattern:

scantemplate1.prototype = object.create(scantemplatebase.prototype); scantemplate1.prototype.contructor = scantemplate1; 

here, scantemplate1 inherits scantemplatebase class.

now in .js file, content assist suggests member functions defined in scantemplate1.js file. doesn't suggest member functions inherited scantemplatebase.

i using eclipse luna latest jsdt version. is there way enable content assist suggest inherited member functions?

example: scantemplatebase class has function

scantemplatebase.prototype.getinstruction = function(){     return this.instruction; }; 

scantemplate1 has function

scantemplate1.prototype.gettextbox = function() { return this.textbox; }; 

now, in file main.js, have statement

var packagescanbox = new scantemplate1( ..... constructor args ....); 

on typing packagescanbox. , pressing ctrl + space, suggests gettextbox() not getinstruction()

thanks in advance!

disclaimer, i'm author of tern.java

i suggest you install tern.java supports object.create. have tested :

enter image description here

as tern.java based on ternjs, can test case ternjs online demo.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -