coffee-script icon indicating copy to clipboard operation
coffee-script copied to clipboard

Can't use `_.defer`

Open vjpr opened this issue 11 years ago • 4 comments

Returns an error: has no method 'icedToSlot'

vjpr avatar Jan 30 '14 11:01 vjpr

Seems to work for me, can you give me more context? Thanks.

maxtaco avatar Jan 30 '14 13:01 maxtaco

At the try iced coffee script tab at http://maxtaco.github.io/coffee-script/type in and observe the error in the top right

_.defer ->
  'something'
, 200

On Fri, Jan 31, 2014 at 12:57 AM, Maxwell Krohn [email protected]:

Seems to work for me, can you give me more context? Thanks.

Reply to this email directly or view it on GitHubhttps://github.com/maxtaco/coffee-script/issues/107#issuecomment-33689414 .

vjpr avatar Jan 30 '14 14:01 vjpr

Honestly I haven't recompiled the demo yet with the new IcedCoffeeScript (1.7.0-a), but I think this is a bug in all previous versions of IcedCoffeeScript, no? The issue is that defer is now a keyword with a special meaning. The easiest workaround is

_["defer"] ->
   'something'
   , 200

Does that work?

maxtaco avatar Jan 30 '14 14:01 maxtaco

Yep. Thanks.

On Friday, January 31, 2014, Maxwell Krohn [email protected] wrote:

Honestly I haven't recompiled the demo yet with the new IcedCoffeeScript (1.7.0-a), but I think this is a bug in all previous versions of IcedCoffeeScript, no? The issue is that defer is now a keyword with a special meaning. The easiest workaround is

_["defer"] -> 'something' , 200

Does that work?

Reply to this email directly or view it on GitHubhttps://github.com/maxtaco/coffee-script/issues/107#issuecomment-33690705 .

vjpr avatar Jan 30 '14 23:01 vjpr