便å©ä¾¿å©ã¨è¨ããã¤ã¤ã使ã£ã¦ã¿ãªãã¨è¯ããããããªãã®ãDeferred Objectã身è¿ãªã¨ããã§è¨ãã¨ã$.ajaxãè¿ããdoneã¨ãfailã¨ããå¼ã¹ãã¢ã¬ãDeferred Objectã§ãã使ãããªãã¨è²ã ãªå¦çãã³ã¼ã«ããã¯ã渡ãããããã¡ãã£ã¨ç¶ºéºã«æ¸ããããã«ãªãã¾ãã ã¨ãããã¨ã§æè¿ããã¸ã§ã¯ãã§ä½¿ã£ããã¿ã¼ã³ãä¸å¿ã«ä¾ãããã¦ã¿ã¾ãã ã³ã¼ãã¯ãã¹ã¦CoffeeScriptã®æ¬ä¼¼ã³ã¼ãã§ãã ã¾ãæåã«ä¾¿å©ãªæ¸ãæ¹ãè¦ãã Deferred Objectã¯$.Deferred()ã§ä½ãããã§ãããããã«ã¯ãä½ãããDeferred Objectèªä½ãå¼æ°ã«ã¨ãé¢æ°ããå¼æ°ã¨ãã¦æ¸¡ãã¾ãããããå©ç¨ãã㨠d = $.Deferred() doSomethingWithCallback -> d.resolve() d ã $.Deferred (d) -> doS
{{#tags}}- {{label}}
{{/tags}}