It is better to use that, but setProperty also ensures that the value is
removed if you set something to null or undefined. This can be useful if
you're passing a variable to the method that may be defined or may not be.
You can let MooTools worry about what to do with it. It also means you can
use .set to define numerous things, including null values.

On Tue, Dec 30, 2008 at 4:37 AM, stratboy (via Nabble) <
[email protected]<ml-user%[email protected]>
> wrote:

>
>
> > setProperty is MooTools' wrapper for that method that helps you manage
> > removing properties (setting them to null)
>
> @nutron: isn't it better to use removeProperty() ?
>
>
> ------------------------------
>  View message @
> http://n2.nabble.com/get-set-vs.-store-retrieve-tp2077828p2092218.html
> To start a new topic under MooTools Users, email
> [email protected]<ml-node%[email protected]>
> To unsubscribe from MooTools Users, click here< (link removed) >.
>
>
>


-----
The MooTools Tutorial:  http://www.mootorial.com www.mootorial.com 
Clientcide:  http://www.clientcide.com www.clientcide.com 
-- 
View this message in context: 
http://n2.nabble.com/get-set-vs.-store-retrieve-tp2077828p2092982.html
Sent from the MooTools Users mailing list archive at Nabble.com.

Reply via email to