Page 1 of 1

Code Completion - more and more complex

Posted: Fri Mar 06, 2009 5:14 pm
by Iveco
Hi Eric,

really love Spket. Aweseome IDE, also the code completion is really great in combination with EXTJs. But sometimes it still won't trigger.

Can you make it possible, that this works?

Code: Select all

// somewhere else in the code

var SplineWindowTree = function() {
    // local variables
    var tree;
    return {
        // functions
        getTreePanel : function()
        {
          return tree;
        },
        init : function() {
          
           tree = new Ext.tree.Treepanel({
            ...
           });
              
        }
    };
}();


// somewhere else in the code
var tree = SplineWindowTree.getTreePanel();
tree. // code completion doesnt work (EXTJs TreePanel is returned)


Posted: Fri Mar 06, 2009 5:55 pm
by eric_suen
Hmm, I think you can using comment, like

Code: Select all

/**
 * @return Ext.tree.TreePanel
 */
getTreePanel : function()
{
  return tree;
}