일반 익명함수의 사용

황제낙엽 2008.10.14 19:54 조회 수 : 20 추천:131

sitelink1  
sitelink2  
sitelink3  
sitelink4  
extra_vars4  
extra_vars5  
extra_vars6  
(function(thisP, cell, node) {     
    TOBE.Event.observe(cell, "mousedown", function() {   
        if (thisP._getEnable()) {   
            thisP._drawPopup(cell, node, true, true);   
        }   
    });   
})(this, cell, currentNode);


Syntax : (function(인자1,인자2,인자3) {})(인자1,인자2,인자3);

익명함수는 선언과 동시에 실행된다.