http://bugzilla.wpkg.org/show_bug.cgi?id=186
--- Comment #2 from Keith Jones <k.e.jo...@brighton.ac.uk> --- Back again :-) Sorry for just wittering on about this but there's a part of my mind saying that some of the concepts might be useful in increasing WPKG.JS's maintainability whilst still preserving all of its brilliant programming! I've been persuing this idea about JSON'ifying objects for another project and (although it's rather neat) the code above really isn't quite as useful as I thought. I have however come up with some interesting ideas that might be useful to WPKG. The code attached is a really rough attempt to create a function that can flexibly turn the XML content WPKG uses into a simple object. It uses a few tricks and fiddly ideas but essentially it could replace a large number of the functions like createSettings/setSettings/getSettings with a generic object-based system. I've based it on generating objects that use arrays to represent "collections" and adding XML attributes as the JScript equivalnet of properties. It's really just a "concept" so if it's of no use don't worry. It just seemed an intriguing idea and I could see some great uses in the WPKG infra structure :-) take care folks! -- Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. ------------------------------------------------------------------------- wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ _______________________________________________ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users