Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
this.onEnterFrame=undefined or delete this.onEnterFrame

this.onEnterFrame=undefined or delete this.onEnterFrame

2004-03-14       - By Morten Barklund

 Back
Reply:     1     2     3     4     5  

> Like something said before. Setting to undefined is not a bad practice,
> this depends on the case u are using it in. In some cases setting
> values to
> undefined can improve speed. There can also be situations where u want a
> value to be undefined and not resolve via the prototype chain.

I'd anytime recommend setting to null only - never set to undefined. You can
have the same speed improvements, but it works another way.

If I check a variable or property, and it is undefined, I'd expect it to be
non-existent - not set to undefined and thus maybe hiding prototyped
properties.

That was my point ;)

// Morten Barklund
// DKMMUG Manager


=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:106884
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)