Unexpected character }

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Unexpected character }

PabloEstefo
Hi folks,

I have some troubles filing in the following package:

https://gist.github.com/pestefo/945e413cea90a0e80905

The complaining method is the foliowing:

=~=~=~
MOServerJQuery>>go

jQuery
    ajax: self url
    options: #{
'accept' -> self mimeType.
'type' -> self type.
'success' -> self successBlock.
'error' -> self errorBlock.

=~=~=~

The code starts at line 289 seems to be fine. 
BTW the code was exported with P2AExporter (Pharo2Amber package —> http://smalltalkhub.com/#!/~ObjectProfile/Exporter ).

Any idea?

Thanks in advance.

Pablo

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.
Reply | Threaded
Open this post in threaded view
|

Re: Unexpected character }

PabloEstefo
Catched!

The problem was the last dot just after “self errorBlock”. This is not problematic in Pharo but it is in Amber.

=~=~=~
MOServerJQuery>>go

jQuery
    ajax: self url
    options: #{
'accept'  -> self mimeType.
'type'  -> self type.
'success'  -> self successBlock.
'error'  -> self errorBlock. <-----

=~=~=~


Cheers,
Pablo

On Jan 20, 2014, at 13:14, Pablo Estefó <[hidden email]> wrote:

Hi folks,

I have some troubles filing in the following package:

https://gist.github.com/pestefo/945e413cea90a0e80905

The complaining method is the foliowing:

=~=~=~
MOServerJQuery>>go

jQuery
    ajax: self url
    options: #{
'accept' -> self mimeType.
'type' -> self type.
'success' -> self successBlock.
'error' -> self errorBlock.

=~=~=~

The code starts at line 289 seems to be fine. 
BTW the code was exported with P2AExporter (Pharo2Amber package —> http://smalltalkhub.com/#!/~ObjectProfile/Exporter ).

Any idea?

Thanks in advance.

Pablo

--
You received this message because you are subscribed to the Google Groups "amber-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/groups/opt_out.