maxtaco / coffee-script

IcedCoffeeScript
http://maxtaco.github.com/coffee-script
MIT License
727 stars 58 forks source link

Can't use `_.defer` #107

Open vjpr opened 10 years ago

vjpr commented 10 years ago

Returns an error: has no method 'icedToSlot'

maxtaco commented 10 years ago

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

vjpr commented 10 years ago

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 notifications@github.comwrote:

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 .

maxtaco commented 10 years ago

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?

vjpr commented 10 years ago

Yep. Thanks.

On Friday, January 31, 2014, Maxwell Krohn notifications@github.com 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 .