> -----Original Message----- > From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED] > Sent: Monday, September 25, 2006 9:41 AM > To: CF-Talk > Subject: RE: [OT Ann] Debugging Toolset: Dumper, Timer, Logger > > Jim, > > Just curious, but why did you decide to extend "Object" instead of just > creating a custom static debugging object?
Mostly because I forgot to switch it. ;^) The original library was designed to be a Static member of Object or (using another method) added directly to the Object prototype. This gave you some nice abilities, for example you could chain method calls: MyArray.dpDump().split().dpDump() Also with it added as a static method to Object there's really no footprint on the page - no new variables added. But in the end it makes more sense to create a single global to hold everything (as I've done with my other libraries recently). So I did. The version now available for download places everything into a "DP_Debug" object and doesn't modify the base JavaScript Object at all. Jim Davis ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:254165 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

