blocks

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

blocks

sebastianconcept
Hi guys,

window on: 'hashchange' do: aBlock

is giving me DNU on:do:

so here is a quick one, how do implement from Amber this one?


$(window).on('hashchange', function() {
    //some block
});

sebastian

--
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: blocks

Herby Vojčík


Sebastian Sastre wrote:

> Hi guys,
>
> window on: 'hashchange' do: aBlock
>
> is giving me DNU on:do:
>
> so here is a quick one, how do implement from Amber this one?
>
>
> |$(window).on('hashchange',  function()  {
>      //some block
> });|

window asJQuery on: 'hashchange' bind: [ ... ]

on:do: can ptobably work as well, but I use different selector not
confuse with Smalltalk on:do: for exceptions.

> sebastian

Herby

--
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: blocks

Nicolas Petton
Yes, #on:do: would work too :)

Nico

On Mar 19, 2013, at 6:15 AM, Herby Vojčík <[hidden email]> wrote:

>
>
> Sebastian Sastre wrote:
>> Hi guys,
>>
>> window on: 'hashchange' do: aBlock
>>
>> is giving me DNU on:do:
>>
>> so here is a quick one, how do implement from Amber this one?
>>
>>
>> |$(window).on('hashchange',  function()  {
>>     //some block
>> });|
>
> window asJQuery on: 'hashchange' bind: [ ... ]
>
> on:do: can ptobably work as well, but I use different selector not confuse with Smalltalk on:do: for exceptions.
>
>> sebastian
>
> Herby
>
> --
> 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.
>
>

--
Nicolas Petton
http://www.nicolas-petton.fr

--
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: blocks

sebastianconcept
in my attempts I've forgot the asJQuery :)

both versions works

thanks

salutes amberians


On Mar 19, 2013, at 8:39 AM, Nicolas Petton wrote:

Yes, #on:do: would work too :)

Nico

On Mar 19, 2013, at 6:15 AM, Herby Vojčík <[hidden email]> wrote:



Sebastian Sastre wrote:
Hi guys,

window on: 'hashchange' do: aBlock

is giving me DNU on:do:

so here is a quick one, how do implement from Amber this one?


|$(window).on('hashchange',  function()  {
   //some block
});|

window asJQuery on: 'hashchange' bind: [ ... ]

on:do: can ptobably work as well, but I use different selector not confuse with Smalltalk on:do: for exceptions.

sebastian

Herby

--
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.



--
Nicolas Petton
http://www.nicolas-petton.fr

--
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.



--
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.