That's a breaking change from 1.2 to 1.3.
CPojer should have a doc explaining how to workaround it and a compat file for 
it too.
CPojer, what's the URL?

— Thomas Aylott (from iPad)

On Oct 25, 2010, at 2:18 PM, André Fiedler <[email protected]> wrote:

> k, that´s bad. Used it a lot. ;o) Thanks so far
> 
> 2010/10/25 Sean McArthur <[email protected]>
> You don't pass a default. Thats not a behavior of MooTools (I know Python 
> dictionaries use the default value though).
> 
> To get a default value, just use the OR (default) operator.
> 
> var text = myEl.get('text') || defaultText;
> 
> 
> 
> On Mon, Oct 25, 2010 at 2:13 PM, André Fiedler <[email protected]> 
> wrote:
> So, if i now can get multiple values, how do i pass a default?
> 
> 2010/10/25 André Fiedler <[email protected]>
> 
> I thought the second parameter is the "default" if text isn´t set?

Reply via email to