ContainerJS
ContainerJSã§ã¯ãã³ã³ãã¼ãã³ãã®ä¾åé¢ä¿ã循ç°ãã¦ããå ´åã§ãåç´ãªå¾ªç°ã§ããã°ã¨ã©ã¼ã¨ããã«ä¾åé¢ä¿ã解決ã§ããããã¾ãããã¨ãã°ä»¥ä¸ã®ãããªãã¿ã¼ã³ã§ããã°åé¡ãªã解決å¯è½ã§ãã function main() { // 循ç°åç §ããã³ã³ãã¼ãã³ãã以ä¸ã®â¦
ã³ã³ããã§ç®¡çãã¦ããã³ã³ãã¼ãã³ãã®ãããã¡ã¤ã«ãåãã¦ã¼ãã£ãªãã£ãæ¸ãã¦ã¿ã¾ãããã°ãã¼ãã«ã¤ã³ã¿ã¼ã»ãã¿ã¼ã使ã£ã¦ããã£ã¨ä½ãã¾ãã ã³ã³ããã§ç®¡çãã¦ããã³ã³ãã¼ãã³ãã®ã¡ã½ãããå¼ã³åºããåæ°ãæè¦æéãéè¨ãã¦è¡¨ç¤ºãã¾ãã ã³â¦
ContainerJS-0.3.0ããªãªã¼ã¹ãã¾ãããâContainerJS å¤æ´ç¹ [æ©è½è¿½å ] Typeã§ã®ã³ã³ãã¼ãã³ãåå¾ ã³ã³ãã¼ãã³ããæã¤APIãæ¡ä»¶ã«ã³ã³ãã¼ãã³ããæ¢ç´¢ããæ©è½ã§ãããããããã³ã³ãã¼ãã³ãã¯ãã³ã³ããããåå¾ããããã¢ã¹ãã¯ããé©ç¨ãããã§ãâ¦
åã«æ¤è¨ããTypeã§ã®ã³ã³ãã¼ãã³ãåå¾(ã³ã³ãã¼ãã³ããæã¤APIãæ¡ä»¶ã«ã³ã³ãã¼ãã³ããæ¢ç´¢ããã³ã³ããããåãåºãããã¤ã³ã¸ã§ã¯ã·ã§ã³ãããããæ©è½ã)ãã¾ã£ããå®è£ ãå®è£ èªä½ã¯ã ãããæ¸ãã ãã©ãã¹ãã¯æªãç°¡åãªãµã³ãã«ãåãã®ã¯ç¢ºèªããâ¦
åã«æ§æ³ãããTypeãæ©è½ãã¡ãã£ã¨å®è£ ãã¦ã¿ã¾ãããTypeã®çæã¨ãã§ãã¯APIã®ã¿ãã³ã³ããã«ã¯ã¾ã çµã¿è¾¼ãã§ãã¾ããããã¨ãã¹ããéä¸ã¾ã§ããã§ãã¦ãªãã§ãããããªæãã§ä½¿ãã¾ãã // ãã¹ãç¨ã¢ãã« var TestObject = function(){} TestObject.â¦
ãã¤ã³ãã¡ã½ããã®è¨å®ãã¡ã³ãã¤ä»¶ã«ã¤ãã¦ãæå®ããã¡ã½ãã(ã»ãã)ãæã¤ã³ã³ãã¼ãã³ããæ¢ãã¦ããæ©è½ãã³ã³ããã«ããã°è¯ããã§ã¯ãã¨æã£ãã æ©è½ ã³ã³ããã«ç»é²æ¸ã¿ã®ã³ã³ãã¼ãã³ããã¹ãã£ã³ãã¦ãæå®ããã¡ã½ãããæã¤ã³ã³ãã¼ãã³ããâ¦
æãç«ã£ããåæ¥ãã¨ãããã¨ã§Google Codeã§ãJavaScriptã§ä½¿ããDIã³ã³ãããããã¸ã§ã¯ããç«ã¡ä¸ãã¾ããã ContainerJSProject Home ã ãã¯ãªãã¨ãè±è¨³ãã§ã£ã¡ããã¦ã¿ã¾ããããã£ã¨æ²æ¨ãªãã¨ã«ãªã£ã¦ããã«éããªããã¨ãããã¨ã§ä»æ¥ãããªã¼ãâ¦