Code Completion - more and more complex

Feature requests
Post Reply
Iveco
Posts: 7
Joined: Wed Sep 12, 2007 2:03 pm

Code Completion - more and more complex

Post by Iveco » Fri Mar 06, 2009 5:14 pm

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)


eric_suen
Site Admin
Posts: 678
Joined: Wed Sep 28, 2005 7:00 am
Contact:

Post by eric_suen » Fri Mar 06, 2009 5:55 pm

Hmm, I think you can using comment, like

Code: Select all

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest