- Code: Select all
-----------[common.js]------
(function(){
Common = {
interFace1 : function(){...},
interFace2 : function(){...}
};
function _inner(){
return "inner";
};
})();
--------------------------------
---------[test.js]-------------
/*
* @include "common.js"
*/
Common.interFace1(); // content assist can not work!
------------------------------
The Common is not recognized by the content assist in test.js, but, if I use jquery,and include a jquery plugin file, content assist can work correct, for example:
- Code: Select all
------[jquery.test.js]---
(function($){
$.test = {...}
})(jQuery);
---------------------------
---------[test.js]-------------
/*
* @include "jquery.test.js"
*/
$.test // content assist work correct, why?????
------------------------------
does spket support closure??
